Jeremy,

selectedItems is an array, so in order to display your selections, you'd have to loop the selectedItems value instead:

for(var i:int = 0; i < stateList.selectedItems.length; i++)
{
    trace("selection " + i + " = " + stateList.selectedItems[i].label);
}


Brendan


On 8/16/06, Jeremy Rottman <[EMAIL PROTECTED] > wrote:

I am using a multi select list that holds all the states for the US. I
need to pass the selected states to my cfc, but first I am trying to
see how the information will be passed. Currently I am testing with
the code below, but the code does not work. It does not display
anything inside of the alert. Can someone show me what I am doing wrong.

<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
import mx.controls.Alert;

private function test(){
Alert.show(stateList.selectedItems.label)
}



]]>
</mx:Script>


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to