Subscribe to our newsletter:
Step Five: The Controller
I am not aware of an ActionScript command that will make a movie play backwards. To do this you need to create a controller that will manages the movement.
1. Go to: Insert - New Symbol
Name: Controller MC
Behavior: Movie Clip
2. In frame 1 place the following ActionScript:
3. In frame 2 place the following ActionScript:
This will make the movie go back one frame. Nearly playing backwards but not quite.
4. In frame 3 place the following ActionScript:
This will repeat the action of the previous frame. It is this loop which will make the movie play backwards.
5. Click the
tab to go back to the main stage.
6. Create a new Layer called: Controller MC
7. In this layer right click on frame 2 and select: Insert Blank Keyframe
8. Drag the Controller MC onto the main stage in frame 2.
Note: The Controller MC can be placed anywhere on the stage or to the side of the stage but it must start on frame 2 and remain on stage until the last frame. If the controller is placed in frame 1 you may get errors !! Once the controller is active it will trap you in frame 1 because it is always be sending you backwards.
The controller starts on frame 2 and is placed to the right of the main stage (the white dot).
9. In the Property panel give the Controller MC an instance name: controller
1. Go to: Insert - New Symbol
Name: Controller MC
Behavior: Movie Clip
2. In frame 1 place the following ActionScript:
stop();3. In frame 2 place the following ActionScript:
_root.prevFrame();This will make the movie go back one frame. Nearly playing backwards but not quite.
4. In frame 3 place the following ActionScript:
gotoAndPlay (2);This will repeat the action of the previous frame. It is this loop which will make the movie play backwards.
5. Click the
tab to go back to the main stage.
6. Create a new Layer called: Controller MC
7. In this layer right click on frame 2 and select: Insert Blank Keyframe
8. Drag the Controller MC onto the main stage in frame 2.
Note: The Controller MC can be placed anywhere on the stage or to the side of the stage but it must start on frame 2 and remain on stage until the last frame. If the controller is placed in frame 1 you may get errors !! Once the controller is active it will trap you in frame 1 because it is always be sending you backwards.
The controller starts on frame 2 and is placed to the right of the main stage (the white dot).
9. In the Property panel give the Controller MC an instance name: controller
question Posted on 08/25/2008
is there any way that i can insert buttons that would skip to a section of the image or information within the movie clip. like a short cut that takes me to the area i want.
help Posted on 08/25/2008
Hey,
this is perfect for a project i am working on. i like the simplicity of the lesson. but i am having problems. my buttons won‘t work and it says there are issues with the code and having trouble being allowed to put code on the button. any help would be much appreciated.
thanks





help
and feedback
latest
news
latest
forum entries