Groups | Blog | Home
all groups > flash data integration > february 2005 >

flash data integration : getting at values in combo box


deepfloyd
2/24/2005 9:23:57 PM
I have a combo box component being populated from the xml data component. in
the xml there is only two cild nodes. I have php script grabbing this info from
my database and writting the xml file. all this works just fine and popluated
the cb. <category> <name>samples</name> <id>1</id> </category> I have
set the re-arrange fileds in my parameters to 'label=name;data=id' How do I
get at the 'data=id' in the combo box and assign that id# to a vraiable in
which I can pass on as a parameter to a function? I need to assign the values
selected in the CB to a variable?
TurnerMan
2/25/2005 9:57:58 PM
You've already assigned the data from the combobox as 'id' while the 'name' is
being displayed, right? All you have to do is bind the 'id' to another object,
such as a text window component. To use is as a variable, I would think you
would need to define it first. Here's an example that I think may be close:

var MyNumber:Integer = [myCombobox.selectedIndex.id];
AddThis Social Bookmark Button