Skip to main content
Participant
April 17, 2008
Question

gotoAndPlay Just Stops

  • April 17, 2008
  • 1 reply
  • 220 views
I am using gotoAndPlay in a function with ENTER_FRAME event. I believe that it goes to the frame (used trace) but it just stops and won't play. I have been working on this for a couple of hours and the closest thing I could find to an answer was this post

"gotoAndPlay won't work with the enterFrame event.
for example in the '_parent.gotoAndPlay(45)' , the playhead will keep going to that frame 45 and will never get further.
You'll need to workaround that (using variables + a loop in the _parent for instance). "

Could someone explain this and give me some type of work around. My code is below
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 17, 2008
what do you expect will happen when you repeatedly direct to "energyStart"? how can the playhead possibly advance past that frame while your loop is executing?

so HINT: terminate that loop when inFrame is called which begs the question, "why use an ENTER_FRAME loop, at all"?