PDA

View Full Version : Help with Button Actions


surfwax95
10-13-2005, 10:25 PM
I'm a Beginner to Actionscript, but I'm fairly familiar to Flash.

I have Flash MX 2004 for Mac.

I'm trying to get a button on Frame 1 to send the timeline to Frame 2 after clicking on it. I've searched through these forums for a while, and the tutorials, but haven't really found a concise answer to my question. If someone could post the Actionscript I need that would be awesome, you'd be helping me out a lot.

CyanBlue
10-13-2005, 10:27 PM
Howdy and Welcome... :)

You could select the button and add this script...
on (release)
{
_root.gotoAndStop(2);
}

surfwax95
10-13-2005, 10:30 PM
Thanks for the really quick reply, but I'm still getting a syntax error:

**Error** Scene=Opening Page, layer=Music, frame=1:Line 4: Syntax error.
}[/as]

Total ActionScript Errors: 1 Reported Errors: 1

What should I do now?
Thanks.

CyanBlue
10-13-2005, 10:41 PM
Oh... Delete [ as ] and [ /as ] in your code and see if it works...

surfwax95
10-13-2005, 10:42 PM
That was it. Thanks very much for your help!:)