PDA

View Full Version : comboBox


rop65828
05-14-2002, 12:59 AM
ok...
when i select any item from the combobox i want the movie to go back to frame 1... simple!?!?... but i cant do it...
Any HELP please...

floydus
09-14-2004, 03:43 AM
Click once on your combobox in design mode, select properties window, give it instance name "myComboBox", click parameters tab on the right, and in change handler type onSelect...

onSelect = function () {
var1=int(mycomboBox.getSelectedIndex());
if(var1!=0){
//if user selected first item (which is nothing in my case)...
}
else
this._parent.gotoAndPlay(1);
// could also be this._parent.gotoAndStop(1);

}
//end of function

hope this help