Here's how I ended up doing the event handler:

In the MXML...

<mx:VBox x="7" y="20" verticalGap="0">
    <mx:Repeater id="rpIndRecordTypes">
        <mx:CheckBox label="{rpIndRecordTypes.currentItem.TABLFLD}"
click="clickHandler(CheckBox(event.currentTarget));"/>
    </mx:Repeater>
</mx:VBox>

And the event handler...

public function clickHandler(target:CheckBox):void
{
    var item = obj.getRepeaterItem();
    var value:String = item.TABLKEY;
    if (StringUtil.trim(value) == 'AL')
    {
        chkAlumniUndergrad.visible = obj.selected;
        chkAlumniGraduate.visible = obj.selected;
    }
    if (value == 'HS')
    {
        chkHouseStaffFormer.visible = obj.selected;
        chkHouseStaffCurrent.visible = obj.selected;
    }
    if (value == 'ST')
    {
        chkStudentUndergrad.visible = obj.selected;
        chkStudentGraduate.visible = obj.selected;
    }
}

I'll check out the repeaterIndex and repeaterItem to handle accessing the
values OUTSIDE of the event handler....

Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3809
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to