-
HTML in TreeComponent??
I've got the following text in an xml doc that I'm loading into a Tree Component using addTreeNode:
SubDir "test" text
and it displays in the Tree Component as:
SubDir 'test' text
If I parse it and replace the &apos with /" like:
SubDir /"test/" text
it displays properly, but I'm wondering if there's a way to enable html in the Tree Component so I don't have to parse out every html character from the strings??
Thanks!!
-
1 Attachment(s)
I have attached a cellrenderer script, which converts text in the tree to html. Create a movieclip in the library, name it MultiLineCell, export for AS and fill out the class line: scripts.helper.MultiLineCell
Then in your script you write:
myTree.cellRenderer = "MultiCellLine";
To express html in your tree component you have to use special characters in the attributes as shown here:
PHP Code:
label="<font color='#FF0000'>hello</font><p>this is a test.</p>"