# Cellrenderers: HOW?

**URL:** <https://forum.kirupa.com/t/cellrenderers-how/87915>\
**Category:** Uncategorized\
**Created:** [April 25, 2005, 8:43am UTC](https://forum.kirupa.com/t/cellrenderers-how/87915 "2005-04-25T08:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashmatazz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flashmatazz/32/140_2.png) [@Flashmatazz](https://forum.kirupa.com/u/Flashmatazz)\
**Post date:** [April 25, 2005, 8:43am UTC](https://forum.kirupa.com/t/cellrenderers-how/87915/1 "2005-04-25T08:43:03Z")

</div>

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:

```auto

<?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.sephiroth.it/tutorials/flashPHP/cellRenderer/index.php)  
[http://www.communitymx.com/content/article.cfm?page=1&cid=B4AED](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://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](http://www.sephiroth.it/tutorials/flashPHP/custom_tree/page002.php)

but still no luck. Please help.
