I’ve been trying to create an instance of a tree component where to the right of the textlabel for each ‘endnode’ (so not for the branches/folders) themselves I’d like to add an mc. This mc contains a bar which I want to set the width of depending on a value from the xml.
This is what the xml looks like:
<?xml version="1.0" encoding="utf-8"?>
<tree>
<node label="First node">
<node label="Item 1" q="67"/>
<node label="Item 2" q="21"/>
</node>
<node label="Second node">
<node label="Item 3" q="88"/>
</node>
</tree>
I’ve been looking at several tuts on cellrenderers but I can’t seem to figure out how on earth to do this properly.
Anyone out here that’s able to shed a light on this subject?
I’ve tried several tuts already:
http://www.sephiroth.it/tutorials/flashPHP/cellRenderer/index.php
http://www.communitymx.com/content/article.cfm?page=1&cid=B4AED
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002108.html
http://www.sephiroth.it/tutorials/flashPHP/custom_tree/page002.php
but still no luck. Please help.