I have tried a new solution for the tree component with the checkbox component rendered along with it.Here is the renderer code
CheckRenderer.mxml <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" borderStyle="none" horizontalGap="0" backgroundAlpha="0" marginLeft="0" marginRight="0"> <mx:Script> <![CDATA[ var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; var isCellEditor : Boolean = true; function setValue(str:String, item:Object, sel:Boolean) : Void { _check._visible = (item!=undefined); if (item != undefined) { _check.visible = (item!=undefined); checkLabel.text = item.attributes.label ; var obj = item.attributes.checked; var newObj : Boolean; a Boolean. if (obj == "true" || obj == true) { newObj = true; } else if (obj == "false" || obj == false) { newObj = false; } else { String value return; } _check.selected = newObj; } } function checkClick() { listOwner.editField(getCellIndex().itemIndex, "checked", (_check.selected) ? "true" : "false"); listOwner.dispatchEvent({type: 'change', checked:_check.selected, itm: listOwner.getNodeDisplayedAt(getCellIndex().itemIndex)}); } ]]> </mx:Script> <mx:CheckBox id="_check" label="" width="16" click="checkClick ()"/> </mx:HBox> Thanks Anto ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/