This content has been marked as final. Show 3 replies
yourVar = your_cb.seletectedItem.data;
yourVar = your_cb.seletectedItem.label;
yourVar = your_cb.getItemAt(1).label;
yourVar = your_cb.getItemAt(1).data;
Now my next problem....
I get this
**Error** Symbol=prosperity_description, layer=quantity, frame=1:Line 43: Statement must appear within on/onClipEvent handler
with this code placed on the frame of the combo box....still new to programming this language...
It appears as though you have added your ActionScript directly to an instance, instead of adding it to Frame 1 of the Timeline as instructed for both snippets.
This means you had the instance as the last selected item before you added code.
You want the frame as the last selected item before you add the code.
If you have the Actions panel open you might find the Script Navigator helpful: