Flash 8 Help - Gotoandplay() action script?

sam

New Member
Hey.<br />
I havnt used flash for a few years now, And i forget a simple thing.<br />
<br />
My frame has a stop action on frame 66, with a button. I want the button to take me to frame 70<br />
<br />
I have this code on my button gotoAndPlay(70);<br />
<br />
And i get this error<br />
**Error** Scene=Scene 1, layer=Text, frame=66Line 1 Statement must appear within on handler<br />
gotoAndPlay(70);<br />
<br />
Im pretty certain i missed some action script out, But i just dont know what. And tutorials dont seem to help.<br />
<br />
So if anyway can get me past this, as i feel so dumb for not knowing ;/<br />
<br />
Cheers.<br />
 

ChrisG

New Member
add the code to the button

on(press){
gotoAndPlay(70);
}

or

on(release){
gotoAndPlay(70);
}

both do what you want
 
Top