|
Re: Stopping an Animation
I read a few things. I may be doing this wrong so I am going to run it by you.
I have two layers with a shape tween from frame 1 to frame 30 simulating doors opening. Each layer is a door with one opening to the left and one to the right. At frame 30 of each layer I have stop(); in the action script box. This opens the dors once then they stop.
I have another layer that it the button is in titled Button and another layer titled actions.
In the actions layer I have the action script as follows:
open_btn.onRelease {
gotoAndPlay(1,1);
}
When running the file I get this error:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 1: Syntax error.
open_btn.onRelease {
**Error** Scene=Scene 1, layer=actions, frame=1:Line 2: Scene name must be quoted string
gotoAndPlay(1,1);
Total ActionScript Errors: 2 Reported Errors: 2
It's definately wrong and I just can't seem to get to the next step.
Any help is great. Thanks.
|