When you are editing flash texts, you can use HTML tags to format texts. Here we will show you how to use HTML tags in flash texts.
Solution
- Run Adobe Flash Professional CS4 and create a fla file.
- Create a dynamic text field, and enter myText as its instance name.
- Select the text field, set it as Multiline in the properties panel and click the
to render texts as HTML.
- Before the next step, let's consider some important point.
Not all the HTML tags are supported by Adobe Flash Player. The supported HTML tags are: anchor tag, bold tag, break tag, font tag, image tag, italic tag, list item tag, paragraph tag, span tag.
- Let's continue our job. Create a notepad and named it "myHTML.txt", write the following codes into notepad.
myHTMLdata=<p><b>This is a bold text</b></p><p><i>And this text is in Italic</i></p>This is a <a href="http://www.recipester.org"><u>link</u></a> to the bbc website.<br>Here is a little list of colors :<br><li><font color="#FF0000">Red</font></li><li><font color="#009900">Green</font></li><li><font color="#0000FF">Blue</font></li>
- Click Window in the menu bar and select "Actions" to open the Actions panel. Write the following code on the first frame of the main timeline.
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
myText.htmlText = myLoadVars.myHTMLdata;
}
- Above are some examples of HTML tags, you can use others you like.
Tips
See also
After you have created flash Dynamic Texts or Input Texts, you may want to add borders to them. Here we will show you how to add borders to flash Dynamic Texts and Input Texts.
When you design web pages, the most important is to control the style and layout of your multiple web pages. How can you do it in Dreamweaver? There are two methods, CSS and HTML tags. How can you specify CSS instead of HTML tags? See the solution.
When you make a website using Adobe Dreamweaver CS4, you may want to create CSS selectors for HTML tags. This article will give you the detail.
Related Unresolved Questions