making buttons for an animation in flash mx 2004

Archer1212

[H]F Junkie
Joined
Jul 5, 2004
Messages
10,214
ok im making an animation for a class thats due tomorrow and i made the buttons to switch scenes (scene 1 to scene 2 type of thing) and i keep on getting errors.

i have one button set as a "nextscene button" and at the beginning of scene 2 i have a play button. i go to test it and i get this in the error screen
Code:
**Error** Scene=Scene 1, layer=button, frame=25:Line 1: Statement must appear within on handler
     nextScene();

**Error** Scene=Scene 2, layer=buttons, frame=1:Line 1: Statement must appear within on handler
     play();

Total ActionScript Errors: 2 	 Reported Errors: 2

any one know how to fix this?
 
Back
Top