sandraa
08-05-2009, 06:11 PM
Hi,
I am going crazy on this problem, hopefully someone can help.
I have a comboBox populated through XML. I want to transfer the selected item to a dynamic text field. After a few days and lots of hours... I cant figure this out.:confused:
I have added my comboBox to the stage via the component wondow. Would that be my issue? Would it be best to set it through AS3?
Here is my code..
ComboBox prompt:
item.colour.prompt = xmllist2[p].colours.colour[0];
XML:
<colours>
<colour>blue</colour>
<colour>burgundy</colour>
<colour>brown</colour>
</colours>
Text field ( I have tried a thousand things like selected items, labels.. but there is something I am doing wrong because it does not work at all)
item.itemdesc.text = item.colour.selectedLabel;
Any pointers to the right direction?
Thanks!
I am going crazy on this problem, hopefully someone can help.
I have a comboBox populated through XML. I want to transfer the selected item to a dynamic text field. After a few days and lots of hours... I cant figure this out.:confused:
I have added my comboBox to the stage via the component wondow. Would that be my issue? Would it be best to set it through AS3?
Here is my code..
ComboBox prompt:
item.colour.prompt = xmllist2[p].colours.colour[0];
XML:
<colours>
<colour>blue</colour>
<colour>burgundy</colour>
<colour>brown</colour>
</colours>
Text field ( I have tried a thousand things like selected items, labels.. but there is something I am doing wrong because it does not work at all)
item.itemdesc.text = item.colour.selectedLabel;
Any pointers to the right direction?
Thanks!