all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

button error


button error homegrownideas
11/11/2004 11:07:37 PM
flash actionscript:
**Error** Scene=Scene 1, layer=MAIN, frame=2:Line 1: Statement must appear
within on handler gotoAndPlay(4); Total ActionScript Errors: 1 Reported
Errors: 1 Thats what the error reads, i am in frame 2 and i made a button and
i did gotoAndPlay(4) and it wont go to frame 4 any ideas on why its doing this?
Re: button error homegrownideas
11/11/2004 11:19:37 PM
Re: button error Guilherme
11/11/2004 11:22:06 PM
Re: button error Guilherme
11/11/2004 11:22:28 PM
Re: button error homegrownideas
11/11/2004 11:43:24 PM
**Error** Symbol=test, layer=Layer 1, frame=1:Line 1: Statement must appear
within on handler gotoAndPlay(4); **Error** Scene=Scene 1, layer=MAIN,
frame=2:Line 1: Statement must appear within on/onClipEvent handler
instanceName.onReleasegotoAndPlay(4); Total ActionScript Errors: 2 Reported
Errors: 2
Re: button error homegrownideas
11/11/2004 11:47:04 PM
okay i fixed part of the problem but this still appears: **Error** Scene=Scene
1, layer=MAIN, frame=2:Line 1: Statement must appear within on handler
instanceName.onReleasegotoAndPlay(4); Total ActionScript Errors: 1 Reported
Errors: 1
Re: button error Sergey
11/26/2004 3:13:31 AM
--------------
on (Release) {
mc.gotoAndPlay (4);
}
--------------
or if you would like to paste it in the key frame of the main movie
--------------
buttonname.onRelease = function () {
mc.gotoAndPlay (4);
}
---------------
mc - is a movie you want to control, read help about targeting movie.
AddThis Social Bookmark Button