Jump to content


Photo

Button Error


  • Please log in to reply
1 reply to this topic

#1 cng

cng

    Young Padawan

  • Members
  • Pip
  • 55 posts

Posted 06 March 2005 - 05:06 PM

How do I go to correct this problem?

**Error** Scene=Scene 1, layer=Layer 17, frame=291:Line 1: Statement must appear within on handler
gotoAndPlay(311);

Total ActionScript Errors: 1 Reported Errors: 1


On a button that I have made, I put the code:

gotoAndPlay(311);

I have a frame that stops at 310 so this button allows the movie to continue.

#2 Jamie Huskisson

Jamie Huskisson

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 3,648 posts
  • Gender:Male
  • Location:Nottingham, UK

Posted 06 March 2005 - 05:43 PM

put it inside an on handler such as press

for example:
on(press) {
gotoAndPlay(311);
}

would be your solution :hi:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users