Client LoginView your Shopping CartHelp & Frequently Asked QuestionsEmail Us
Home Services Portfolio Web Design Pricing Dreamweaver Templates Web Applications Free Tutorials About Contact Us
Services > CSS 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 | Logo Design Portfolio | Web Design Pricing > Custom Web Design | Logo Design | Business Card Design
Web Design Guide > Website Design w/ Dreamweaver & Fireworks | Fireworks CS4 Cool Features | Photo Effects | Text Effects | Graphic Design Ideas | Web Design Ideas
Website Navigation Ideas | CSS Styles Tutorial | Dreamweaver Template | Server Side Includes | Flash Tutorials > Flash Effects | Flash Sound Button | Sound On/Off Button
Flash Preloader | Import External Data | Promotion > SEO Tips | Google Tips & Page Rank | JavaScript > Date Validation | Email Validation | Phone Validation | Tip Boxes

HTML in Flash Text

How to display a flash textbox with HTML formatting

You might have wondered how a textbox in flash can be formatted using HTML tags. 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.

Recommended Version: Adobe Flash CS4 Professional

Compatible Versions of Flash for this Tutorial

Flash MX 2004 & below | Flash 8 | Flash CS3 | Flash CS4
Note: For uses of lower versions of Flash some visual interface images would differ.
Recommended Version: Adobe Flash CS4 Professional
You Are Here ::: Home >> Free Tutorials >> Flash Tutorials >> HTML Textbox

Follow the steps given below:

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.

We would love to hear your comments and any suggestions on future tutorials we can add to this section. Thanks!

Fill the below form to submit your comments (or suggestions):
Bookmark and Share this web page.
Sponsored Link(s):
Beauty Templates | Business Templates | Christian Templates | CSS Templates | Education Templates | Family Templates | Flash Templates | Free Dreamweaver Templates
Food Templates | General Templates | Government Templates | Health/Medical Templates | Hi-Tech Templates | Kids/Childcare Templates | Low-cost Budget Templates
Personal Templates | Pets Templates | Photography Templates | Profession Templates | Real Estate Templates | Sports Templates | Telecom Templates | Travel Templates
Free Tutorials > Web Design Tutorials | CSS Web Design | Fireworks Tutorials | Dreamweaver Tutorials | Flash Tutorials | SEO Tutorials | Javascript Tutorials | PHP Tutorials