stComboList.selectedItems will get you what you want.

On 1/5/07, 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"/>




--
http://indeegrumpee.spaces.live.com/

Reply via email to