This content has been marked as final. Show 2 replies
MIchael, I've got a very similar problem too. I also have a ScrollPane that contains a MovieClip to which I attach several other MovieClips during runtime, each of which contains a ComboBox. I am unable to get the ComboBoxes to respond properly to my actionscripts.
At runtime, I attach the MovieClip containing the ComboBox, then I set the dataProvider property for the ComboBox to a list (Array) of data/label value pairs. I then try to set the text property of the ComboBox to a "Please select a value" message and then I add a couple of listeners.
Iterestingly, setting the dataProvider property works, and the ComboBox displays the proper dropdown list when clicked, but the text property doesn't display and the event handlers don't work. Also, when I try to select one of the values, it doesn't display in the ComboBox's text field. If I trace the ComboBox's text property, it outputs correctly, but doesn't display.
If I try the same code on a ComboBox that is not dynamically created, it all works perfectly.
Does anyone know what's up with MIchael and my problems? I'm sure we'd both appreciate the help greatly. I'm pretty stumped.