Question:

Flash 8 - Gotoandplay()?

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. You make the actionscript for the button:

    on(press){

    gotoAndPlay(70);

    }

    And you need to stop playing at frame 66?

    If so, add a stop(); command to frame 66

    The clip will play frame 70 when the button is clicked

    Good luck...

    And if you need more help, feel free to send me an email

    Btw Not knowing something is not Dumb, you just not learned the trick yet!

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.