PDA

View Full Version : Key Press & gotoAndPlay



samba_7
January 4th, 2004, 10:21 AM
Dear all,

I have a movie that plays as an introduction. If a user wants to skip the movie and go to frame 225 but continue playing the movie then I thought I would use this code:

onEnterFrame = function() {
if (Key.getcode() == Key.SPACE) {
gotoAndPlay(225);
}
};

what actually happens is the movie skips to frame 225 but then stops. Now if I leave the movie to play from the start it will get to 225 and continue playing...

strange??? Yes...

Here is the file:
http://www.samblakeley.com/download/index_january3.fla

Any suggestions would be appreciated.
Sam.

:bandit:

norie
January 4th, 2004, 05:18 PM
onEnterFrame = function() {
if (Key.getcode() == Key.SPACE && _currentframe < 225) {
gotoAndPlay(225);
}
};