Skip to main content
Participant
July 25, 2007
Answered

Trouble with gotoAndStop

  • July 25, 2007
  • 2 replies
  • 190 views
Has anyone encounter a bug with gotoAndStop or gotoAndPlay? I have a flash document using a lot of layers and in frame 1 of the actions layer I have the actionscript: (It's the only actionScript in frame 1)

gotoAndStop(385);

on frame 385 I have a keyframe with the actionScript:
trace("This is frame 385");
stop();

When publishing the movie the playhead never goes to 385 it stops at 155 (took me hours just to figure that out). As I delete layers and re-publish the playhead advances and eventually it will stop at 185 if enough layers are deleted. What is going on???? Thanks in advance for any help. (Flash Professional 😎
This topic has been closed for replies.
Correct answer LateNightCoffee
No scenes. I figured it out. All it needed was a preloader which I hadn't put in yet. Man I feel like an idiot.

2 replies

LateNightCoffeeAuthorCorrect answer
Participant
July 25, 2007
No scenes. I figured it out. All it needed was a preloader which I hadn't put in yet. Man I feel like an idiot.
kglad
Community Expert
Community Expert
July 25, 2007
are you using scenes?