Client LoginView your Shopping CartHelp & Frequently Asked QuestionsEmail Us
Home Services Portfolio Rates & Deals Dreamweaver Templates Web Applications Free Tutorials About Us Contact Us
Web Design Guide > Best Web Design Tools | Web Design Ideas | Web Design Tips | Navigation Tips | Fireworks Tips | Rollover Images | Swap Images | CSS Styles Tutorial
Dreamweaver Tips | Dreamweaver Template | Server Side Includes | Dreamweaver Behaviors | Flash Tutorials > Flash Effects | Flash Sound Buttons | Sound On/Off Button
Flash Preloader | Importing External Data | Promotion > SEO Tips | Google Tips & Page Rank | JavaScript > Date Validation | Email Validation | Phone Validation | Tip Boxes

HTML Text in Flash

Flash Tutorial to display Text in HTML Format

This tutorial teaches you how to preserve rich text formatting in a Flash Textbox like font, font style, hyperlink, paragraph, and other text parameters, using the appropriate HTML tags. You might be wondering how a textbox in flash can be formatted using HTML tags. It is very simple and can be done as shown below.

Note: Though this article is visualized with the Flash MX 2004 interface it also can be applied fully to Flash 5.

Creating HTML Rendering Textboxes in Flash

  1. The Dynamic and Input textboxes can be made HTML Rendering.
  2. Create a Dynamic Textbox and select 'Render text as HTML" from the Properties inspector, don't forget to enter a variable name say, 'dyn_txt'.
  3. To format the text in Bold/Italics, open Actions window (F9) and type the following code:
  4. dyn_txt = "<b>This text is in Bold</b><br>";
    dyn_txt = "<i>This text is in Italics</i>";

  5. Values can also be concatenated using '+' sign. Other HTML tags for Fonts can also be used with these Textboxes as shown below:
  6. dyn_txt = "<font color='#"+990000+"'><b>First line Text in Bold Red color</b><font>";
    dyn_txt += "<br><font size='20'>2nd line Text with font-size 20.<font>";

  7. Hyperlinks and Paragraphs can also be done as shown below:
  8. dyn_txt="<br><p align='center'>Center aligned Paragraph Text in Italics</p>
    <a href='http://www.smartwebby.com'><b>Smartwebby.com<b></a> to visit the site";

Note: The Input text can also be rendered in HTML in a similar way by selecting the Input option from the Properties inspector.

Absolutely FREE Web Templates
Check out these quality free web templates and download them without any registration or sign-up!

FREE Web Design Guide
From web design tips & ideas to HTML, CSS Styles, Fireworks & Dreamweaver you'll find all you need to know about effective web site design right here!

Quality Dreamweaver Templates
Professional quality dreamweaver templates in over 20 categories, starting at just $9.95! Instant download & easy customization

Services > Rapid Web Design | Professional Logo Design | ASP.net, ASP & PHP Programming | Flash Animation & Programming | Reliable Web Hosting | Website Maintenance
Portfolio > Web Design Portfolio | Web Programming Portfolio | Print & Logo Design Portfolio | Flash Animation Portfolio | Outsource Clients Portfolio | Client Testimonials
Rates & Deals > Web Design Rates | Custom Web Design Pricing | Logo Design Pricing | Business Card & Letterhead Pricing | Web Hosting Plans | Website Maintenance Plans