all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

help dosn't work!


help dosn't work! 24328
1/1/2005 8:51:56 PM
flash actionscript:
help! I can't make a button goto the next frame. I copied the script straight
from the help file:

my_btn.onRelease = function() {
nextFrame();
}

and I get the following error when I check it:
**Error** Scene=Scene 1, layer=Buttons, frame=31:Line 1: Statement must appear
within on handler
my_btn.onRelease = function() {

Total ActionScript Errors: 1 Reported Errors: 1

help!
Re: copying from help dosn't work! Rich146
1/1/2005 9:39:07 PM
Try putting this ON your button

on (release) {nextFrame();
Re: copying from help dosn't work! 24328
1/1/2005 9:42:42 PM
Re: copying from help dosn't work! Bi Tao
1/1/2005 10:54:01 PM
Re: copying from help dosn't work! kglad
1/1/2005 11:03:17 PM
Re: copying from help dosn't work! Bi Tao
1/1/2005 11:07:30 PM
Re: copying from help dosn't work! kglad
1/1/2005 11:14:42 PM
Re: copying from help dosn't work! Bi Tao
1/1/2005 11:17:15 PM
AddThis Social Bookmark Button