Skip to main content
Participant
October 27, 2006
Answered

Movieclip.goToAndPlay no longer works in Flash 8 Professional

  • October 27, 2006
  • 1 reply
  • 273 views
I have several movies authored in Flash MX which have a single frame main timeline with buttons that control various movieclips in the frames using _root.movieclip.goToAndPlay() etc.
However, as I am gradually revising these and republishing as Flash 8 , I have noticed that clicking the button with an action of _root.movieclip.goToAndPlay() no longer works, whether I publish for Actionscript 1 or 2. If I publish as Flash 6 from within Flash 8 Professional they work fine.
Obviously the syntax has changed, but I must be dense because I can't figure it out from the documentation.
Would be very grateful if anyone can help me out with this.
Cheers
This topic has been closed for replies.
Correct answer zodd
Tim -

Thanks for that - yes, I am dense, particularly as I spend a lot of time working in case-sensitive Linux environments. Checking my code, I noticed that I had a mixture of upper/lowercase renditions of goToAndPlay/gotoAndPlay in there.

However, it makes me think it wouldn't hurt if the debugger threw up an error if you mis-spelt a function. Or would that make likfe too easy???

Peter

1 reply

Participating Frequently
October 27, 2006
Flash 8 is case sensitive.

_root.movieclip.goToAndPlay() should be

_root.movieclip.gotoAndPlay(); // Notice the lowercase "t" in goto

Tim
zoddAuthorCorrect answer
Participant
October 27, 2006
Tim -

Thanks for that - yes, I am dense, particularly as I spend a lot of time working in case-sensitive Linux environments. Checking my code, I noticed that I had a mixture of upper/lowercase renditions of goToAndPlay/gotoAndPlay in there.

However, it makes me think it wouldn't hurt if the debugger threw up an error if you mis-spelt a function. Or would that make likfe too easy???

Peter