So what didn't work here?

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Wednesday, January 04, 2006 8:32 AM
To: [email protected]
Subject: [flexcoders] Inserting data from a combobox

I am a little confused on how to insert data that is selected in a
combobox. I have this code below. I assume this is the correct way to
handle this, but I am not sure. Can someone take a look?



Combobox:
<mx:ComboBox x="197" y="64" dataProvider="{dirPrefix}"
id="fld_propDir"></mx:ComboBox>


Onclick Save Function:
<mx:Button label="Save" click="quAdminAddList(fld_mlsNum.text,
fld_propStreet.text, fld_propNum.text,
fld_propDir.selectedItem.data);"/>

Data I populate the box with:
  [Bindable]
    public var dirPrefix: Array = [ {label:"N", data:"N"},
{label:"S"}, {label:"E"}, {label:"W"}, {label:"NE"}, {label:"SE"},
{label:"NW"}, {label:"SW"} ];
  [Bindable]
    public var selectedItem:Object;





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



 




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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to