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 - 25 Feb 2005 21:57 GMT
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];