The field used to determine if the Item should be checked or not from 
the list stand point will also be able to tell your Item to ckeck the 
checkbox.  
For Example:
xml data - <root><item check="yes" /><item ckeck="no" /></root>
Load the data into your list.  Then in your Item's MXML file, you'd 
use something like this:

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; 
initialize="doCheck()">
<mx:Script><![CDATA[
 private function doCheck():void
 {
  if ([EMAIL PROTECTED] == "yes")
  {
    // this is off the top of my head, so I don't know for sure
    // if this is the correct property used to "check" the box...
    myCheckbox.selected = true;
  }
 }
 ]]
</mx:Script>
<mx:Checkbox id="myCheckbox" />
</mx:Canvas>

Hopefully that helps you out!  (I mean - I get what I'm saying... 
that's not to say anybody else will get it though)  If you need a 
better explanation... let me know and I'll try it again! :D


--- In [email protected], "Paul Whitelock" <[EMAIL PROTECTED]> wrote:
>
> I have an item renderer specified for a List component and there is 
a
> CheckBox component within the item renderer so that each List 
element
> displays a CheckBox. What I'd like to do is if a certain condition
> exists in the application I'd like to disable the item renderer's
> CheckBox for specific List elements (i.e. some List elements would
> show an enabled CheckBox and some List elements would show a 
disabled
> CheckBox depending upon what's going on in the application).
> 
> Is there any way to disable the item renderer's CheckBox for a
> specific List element from the application? Thanks for any pointers!
> 
> Paul
>


Reply via email to