I have 2 symbols in a frame: deer and man. I want to stop the flash movie on frame 45 and if user clicks on deer play frames 50-100 but if user clicks on man I want to play frame 200 - 250. The code I have in frame 45 is:
stop();
var _buttons:Array = [deer, man];
for(var i = 0; i < _buttons.length; i++){
_buttons[i].onRelease = function() {
gotoAndPlay(100);
}
_buttons[i].onRelease = function() {
gotoAndPlay(200);
}
}
when movie stops on frame 45 and I click on an object nothing happens but there are no errors.
privateword beforefunction. - Engineerinterface 'MouseEvent' could not be loaded.- just ericimport flash.events.MouseEventbefore the rest of your code. - Pranav Hosangadiinterface 'flash.events.MouseEvent' could not be loaded.? - just eric