Take a look at the selectedItems property inherited from ListBase:

http://livedocs.macromedia.com/flex/2/langref/mx/controls/listClasses/Li\
stBase.html#selectedItems
<http://livedocs.macromedia.com/flex/2/langref/mx/controls/listClasses/L\
istBase.html#selectedItems>


--- In [email protected], "Lisa Lee" <[EMAIL PROTECTED]> wrote:
>
> I hate asking what I think is probably a very stupid question, but
> being so new to Flex, I am still quite wet behind the ears....I have
> an <mx:List> and I have set the "allowMultipleSelection" property to
> true...my question is, how do I determine what selection(s) the user
> has selected, if they're selected more than one?
>
> <mx:Script>
> <![CDATA[
> import mx.controls.List;
> [Bindable] private var serviceTypeTemp:ArrayCollection;
> private function serviceTypeHandler2(event:ResultEvent):void {
> serviceTypeTemp = event.result.serviceTypeData.serviceType;
> }
> ]]>
> </mx:Script>
>
> <mx:HTTPService id="serviceTypeRPC"
>
> url="http://development/dev1/workspaces/lisa/webservicedata/se
> rvicetypedata.xml"
> result="serviceTypeHandler2(event)"/>
>
> <mx:List id="stComboList"
> dataProvider="{serviceTypeTemp}"
> labelField="description"
> allowMultipleSelection="true"/>
>


Reply via email to