any one know where I can find out what HTML tags Flash supports in its text areas?
I’ve got a list my customer wants on their site that needs to have rows and columns. I have this info in an external file but cannot seem to format it as rows and columns.
The following code example uses the tabstops attribute of the <textformat> tag to create a table of data with boldfaced row headers:
Name Age Department
Tim
32
Finance
Edwin
46
Marketing
To create a formatted table of data using tab stops:
Using the Text tool, create a dynamic text field that’s approximately 300 pixels wide and 100 pixels high.
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.
In the Timeline, select the first frame on Layer 1.
Open the Actions panel (Window > Development Panels > Actions), and enter the following code in the Actions panel:
//Creates column headers, formatted in bold, separated by tabs
var rowHeaders = “<b>Name Age Department</b>”;
//Creates rows with data
var row_1 = “Tim 32 Finance”;
var row_2 = “Edwin 46 Marketing”;
//Sets two tabstops, to 50 and 100 points
table_txt.htmlText = “<textformat tabstops=’[50,100]’>”;
table_txt.htmlText += rowHeaders;
table_txt.htmlText += row_1;
table_txt.htmlText += row_2 ;
table_txt.htmlText += “</textformat>”;
The use of the tab character escape sequence ( ) adds tabs between each column in the table.
Select Control > Test Movie to view the formatted table.