zoukankan      html  css  js  c++  java
  • Tags support in htmlText flash as3

    Tags support in htmlText flash as3

    1. anchor tag <a> </a>


    Three attributes are supported:

    1.1 href: URL can be relativl or absolute. Notice: the absolute URL must begin with “http://”, otherwise, flash player will regard it as relative URL.

    1.2 target: define the name of target loaded page, options: _self,_blank,_parent,_top;
    _self means current window and current frame
    _blank means open a new window
    _parent means the parent of current frame;
    _top menas the highest frame of the current frame;

    1.3 bold tag <b></b> everything words between <b>xxx</b> will be bold;

    2. newline tag <br>


    Newline in current textfield. To use this tag, the textfield must be set as allowing multiple lines.

    3. font tag <font></font>


    Following attributes can be used to decorate font;

    3.1 color: only support Hexadecimal color like (#ffffff);

    3.2 face: define the font family like Arial; Like Css, you can define several font face like Arial, Verdana;In this case, if Arial is not installed in user’s computer, flash player will try to use Verdana as alternative. If none defined fonts are installed, flash will use its default font. To ensure the desired font always be displayed, you can embed that font into swf file. However, it will increase the swf file size for sure.

    4. paragraphy tag <p></p>


    Use this tag to create a new paragraphy in textfield. To use this tag, the textfield must be set as
    allowing multiple lines.
    Two attributes can be applied here:

    4.1 align – define the alignment of paragraphy. It can be left, right, justify and center;
    4.2 class – denfine the specific CSS style you want to use;The style should be created by flash.text.StyleSheet

    5. underline tag <u></u>


    Add underline effect to the words inside the <u>xxx</u> tag

    6. textfield format tag <textformat></textformat>


    Use this tag can apply the attributes defined by textformat to the selected text. Attributes includes blockindent, indent, leading,leftmargin,rightmargin,tabstops;

    6.1 blockindent – define the indent for the whole block text;can be positive or negative

    6.2 indent – define the indent for the first character;can be positive or negative

    6.3 leftmargin – the left margin of the selected paragraphy;

    6.4 rightmargin – the rifht margin of the selected paragraphy;

    6.5 tabstops – define tad moving distance, it should be postive or 0;

    7. imgage tag <img></img>


    Use image tag can embed image file(gif, jpg, png) or swf and movieclip into textfield; Following attributes are supported:

    7.1 src – the url of selected image/swf or identifier of movieclip in library. That attribute is esscetial.
    7.2 width
    7.3 height
    7.4 align – the horizontal alignment way of embeded image/swf/movieclip. Value:left and right; default value is left;
    7.5 hspace – the horizontal blank space around the image;
    7.6 vspace – the vertical blank space around the image;
    7.7 id – the indeifier assigned to embeded file;

  • 相关阅读:
    oracle grant授权的理解
    SQL SERVER 2005 版本以上 CTE递归查询的实现
    常用的加密解密技术之——【加密原理】
    常用的汇编指令
    常用加密解密技术之——【DES算法实现过程分析】
    VC6.0编译器中混有.c文件时出现fatal error C1853错误解决办法
    C++ Primer读书笔记
    Shot(数学+物理题,不简单)
    [置顶] C++/C 数据类型的取值范围
    <fzu1922>非主流
  • 原文地址:https://www.cnblogs.com/cnsoft/p/2856491.html
Copyright © 2011-2022 走看看