Hi,
I’m having problems with a combobox that I’ve got set up to add a movie clip to the stage. What I’d like to happen is when a user selects an item from the comboBox the MovieClip is added to the stage. It kind of works but you have to click on the item twice for the MC to be added. Any idea why this is happening?? Here’s my code:
var IronsMC:Irons = new Irons();
product.addEventListener(ListEvent.ITEM_CLICK, ItemClickHandler);
function ItemClickHandler (event:ListEvent):void {
if (product.selectedItem.label == "Irons")
{
stage.addChild(IronsMC);
IronsMC.x = 60;
IronsMC.y = 182;
}
}
Thanks!
Matt