|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Actionscript Errors
I am tring to make a website through flash. The first frame (my home page) is set to the action of stop. Ok it works. Then I have a button to link to the second keyframe. The actionscript I am using for it is:
GoToAndStop(2); When I test the movie an error message pops up saying: **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler gotoAndStop(2); Total ActionScript Errors: 1 Reported Errors: 1 What does this mean and how do I fix it? |
|
#2
|
||||
|
||||
|
Do you have the mouse event enabled? It should look like this:
on (release) { gotoAndStop(2); } |
|
#3
|
|||
|
|||
|
Thank you very much! That was it!
|
|
#4
|
||||
|
||||
|
My pleasure.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Actionscript Errors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|