Is it possible to format html text in flash with tabs in any way?

Posted on 2009-04-29
Last Modified: 2013-11-12
Is it possible to format html text imported into flash with tabs in any way? Like with tables or any other tag? The text is imported from an external file and formatted with css. I want the text to appear in to columns like in a table with cells:

Title1:           Content1
Title2:           Content2
Title3:           Content3

Now it appears like this in flash when I use tables: Title1: Content1Title2:Content2 Title3: Content3. I know that flash don't support the table tag, but is there any way around it?

Tanks for any ideas and help
Question by:sivkh
    LVL 13

    Assisted Solution

    U need to create this tabel in flash itself.. else make it dynamicaly through XML. but HTML is not supported in flash.
    LVL 6

    Accepted Solution


    Author Comment

    Thanks for the responses, i'm gonna check out your suggestions. But I also found something else on another web-page.
    Text format tag (<textformat>)

    The <textformat>tag lets you use a subset of paragraph formatting properties of the TextFormat class within HTML text fields. It supports the attributes blockindent, indent, leading, leftmargin, rightmargin and tabstops.

    Using the Text tool, create a dynamic text field thats approximately 300 pixels wide and 100 pixels high.

    1. In the Property inspector, name the instance table_txt, select Multiline from the Line Type pop-up menu, and select the Render Text as HTML option.

    2. In the Timeline, select the first frame on Layer 1.

    3. Open the Actions panel (Window > Development Panels > Actions), and enter the following code in the Actions panel:

    4. //Creates column headers, formatted in bold, separated by tabs

    5. var rowHeaders = "<b>Name\tAge\tDepartment</b>";


    7. //Creates rows with data

    8. var row_1 = "Tim\t32\tFinance";

    9. var row_2 = "Edwin\t46\tMarketing";


    11. //Sets two tabstops, to 50 and 100 points

    12. table_txt.htmlText = "<textformat tabstops='[50,100]'>";

    13. table_txt.htmlText += rowHeaders;

    14. table_txt.htmlText += row_1;

    15. table_txt.htmlText += row_2 ;

    16. table_txt.htmlText += "</textformat>";

    The use of the tab character escape sequence ( \t) adds tabs between each column in the table.
    Does anyone know anything about this? I'm gonna check it out and let you know.
    LVL 6

    Assisted Solution

    I guess we can call this a "fake table" or a "premature table"
    Of course you can create a "table effect" with playing with TextFormat object or draw something on the stage.
    The "real table" components which support tr and td tags surely do this by playing with textformat. But you will need lots of coding if you want to create it without a component.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now