Question:

Flash 8 Help - Gotoandplay() action script?

by  |  earlier

0 LIKES UnLike

Hey.

I havnt used flash for a few years now, And i forget a simple thing.

My frame has a stop action on frame 66, with a button. I want the button to take me to frame 70

I have this code on my button: gotoAndPlay(70);

And i get this error:

**Error** Scene=Scene 1, layer=Text, frame=66:Line 1: Statement must appear within on handler

gotoAndPlay(70);

Im pretty certain i missed some action script out, But i just dont know what. And tutorials dont seem to help.

So if anyway can get me past this, as i feel so dumb for not knowing ;/

Cheers.

 Tags:

   Report

1 ANSWERS


  1. add the code to the button:

    on(press){

    gotoAndPlay(70);

    }

    or

    on(release){

    gotoAndPlay(70);

    }

    both do what you want

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions