Flash only supports tags listed here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText, in HTML5 you can use normal HTML tags. Using Multiple Attributes You can add more than one attribute to text, size, color and if is to be underlined etc. The font tag can group its attributes together saving time, please see below text. Flash Output = Your Text HTML5 Output = Your Text Note you open a tag such as from the above example, then you must close it. The correct order is the first tag to be opened is the last tag to be closed. Hyper Links in the Text You can set hyperlinks in the text and also a target such as open in the same window or in a new window. The first shows a link to open in the same window: Your Text The next in a new window: Your Text If you are including sub folders it is important to end the address with a forward slash. Your Text This will reduce the number of requests to the server. HTML5 to open next panorama. link Setting Out Text Use Note Pad or other simple text editor to help layout your text, more complex text editors such as MS Word can alter the format of the symbols and may cause the tags not to work properly giving a blank text box. At this point do not add any formatting tags, you just want to look at text layout. Experiment how long you want each line of text to be, once you have laid out your text, now you can now add the tags, not forgetting tags will not be shown so it does not matter if the text is no longer in the correct layout. At the end of each line of text add your Line Brake tag,
and remove any spaces, you will end up with one long line of text. You can now copy and paste the text in the Skin Editor or other text box. Text box size in the skin editor, for a single line of text use 18px high, however if multiple lines of text are being used, use 17px for each line, so three lines of text would be 51px high. See Also http://www.w3schools.com/html/default.asp http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText http://iosfonts.com
No comments:
Post a Comment