it's recommended the you use frame label instead of scenes. So, this code is to go to a frame number or a frame label, but it can't be used to goto scenes.
place this code at the beginning of the timeline.:
ActionScript Code:
_root.onEnterFrame = function () {
button1.onRelease = function() {
Frame = "YourFrameLabel"
}
button2.onRelease = function() {
Frame = FrameNumber
}
//etc.
}
place this code at the end of the timeline:
but if you have to use scene do this:
place this code on the timeline:
ActionScript Code:
button1.onRelease = function() {
Frame = _root._currentframe+16;
gotoAndPlay(YOURNEXTFRAME);
_root.onEnterFrame = function() {
if (frame == _root._currentframe) {
gotoAndPlay("SCENE2", 1);
}
};
};
button2.onRelease = function() {
Frame = _root._currentframe+16;
gotoAndPlay(YOURNEXTFRAME);
_root.onEnterFrame = function() {
if (frame == _root._currentframe) {
gotoAndPlay("SCENE3", 1);
}
};
};
//continue for each button
in the above code i am guessing that you have a stop action before the 15 frames you want to play
Hope that helps