Look into using the dataChange event in your renderer class. Basically
this event fires whenever the dataProvider is changed on your list:
this should include reapplying the same dataprovider that was
previously assigned.

I'd apply a change event function on your check box that basically
re-assigns the dataprovider for the list. Then in the itemRenderer
white a function that check the state of this check box and includes
excludes content based on its value. Here's an example.

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";
dataChange="updateChecks()" >
<mx:Script>
<![CDATA[
import mx.core.Application;
private function manageAttribute():void{
 // interacts with the data model
}

public function updateChecks():void{
//interact with global data model to determine status and set checkbox
thisCB.selected=selectedValue;
}

]]>
</mx:Script>
<mx:HBox>
<mx:CheckBox id="thisCB" horizontalCenter="0"
label="{data.attributename}" click="manageAttribute()"/>        
</mx:HBox>
</mx:Canvas>

You could do the same thing to hide/show an mxml based image or use
actionscript to dynamically and condtionally add one






--
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/
 



Reply via email to