Skip to main content
Participant
April 20, 2006
Answered

Button Help

  • April 20, 2006
  • 4 replies
  • 260 views
iv made 2 texts 1 saying "with music" and one "without music" i then converted them into symbols(buttons) and did the over, down, hit on both but when i try giveing it a comand i get this "Scene=Scene 1, Layer=Image, Frame=3: Line 1: Statement must appear within on handler"

i entered "gotoAndPlay(5);" i wanted it so when clicked it will go to frame 5 and play the music.

and the other button to go straight to frame 6 to therefore miss the comand to start playing the music.

Thanks in advance
F-0-X
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
What do you mean, you "did the over, down, hit on both"?
What you probably didn't do is put the following actionscript on the button instance:
on(release) {
gotoAndPlay(5);
}
That's why you get this error message.

4 replies

April 20, 2006
welcome!
F-0-XAuthor
Participant
April 20, 2006
Also Thanks youve saved my life lol thanks ever so much
F-0-XAuthor
Participant
April 20, 2006
when you edit the symbol you have 4 frames top, over, down and hit sorry for the confusion
Correct answer
April 20, 2006
What do you mean, you "did the over, down, hit on both"?
What you probably didn't do is put the following actionscript on the button instance:
on(release) {
gotoAndPlay(5);
}
That's why you get this error message.