sponsored ads

How to Use HTML tags in flash texts

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.

sponsored ads

Solution

  1. Run Adobe Flash Professional CS4 and create a fla file.
  2. Create a dynamic text field, and enter myText as its instance name.
    Creat a flash text field
  3. Select the text field, set it as Multiline in the properties panel and click the Render text as html to render texts as HTML.
    Set text as multiline
  4. 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.
  5. 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>
  6. 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;
    }
     
  7. Above are some examples of HTML tags, you can use others you like.

Tips

See also

How to Load external image files into Flash
How to Embed flash files in HTML documents
posterous-spaces
profiled.com/mobile
mobilephone cases

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.

Authors

Tagged Add my tag

sponsored ads

Recent Searches