hi,
i have made a combo box. from the drop down, when user select option 1, option 2 etc.. it will run an action (gotoAndPlay(10) ....)
appreciate it very much for any help rendered.
thanks.
Printable View
hi,
i have made a combo box. from the drop down, when user select option 1, option 2 etc.. it will run an action (gotoAndPlay(10) ....)
appreciate it very much for any help rendered.
thanks.
cb.addItem ({label:"1"});
cb.addItem ({label:"2"});
cb.addItem ({label:"3"});
var cbListener:Object = new Object ();
cbListener.change = function (evt_obj:Object):Void
{
_root.gotoAndPlay (cb.selectedItem.label);
};
cb.addEventListener ("change", cbListener);