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

Posted on 2009-04-29
Medium Priority
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
  • 2
LVL 13

Assisted Solution

qwerty021600 earned 150 total points
ID: 24258860
U need to create this tabel in flash itself.. else make it dynamicaly through XML. but HTML is not supported in flash.

Accepted Solution

biyik earned 600 total points
ID: 24258881

Author Comment

ID: 24260859
Thanks for the responses, i'm gonna check out your suggestions. But I also found something else on another web-page.
From: http://www.devarticles.com/c/a/Flash/Working-with-Text-and-HTML-in-Flash/4/
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.

Assisted Solution

biyik earned 600 total points
ID: 24262179
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

621 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