|
||||||
|
||||||
Flash - Playing a Flash Movie Backwards

Free Flash Tutorial
Step Four: Stopping the Auto Play
The Controller Movie Clip
Up until now everything you have done is standard Flash construction. The problem with making a movie play in reverse is that there is no:
playReverse(); Do not use - does not work !
At least as far as I am aware there is no play in reverse command! I don't no why not, it seems an obvious option. Macromedia, are you listening!
There is the following script:
on (release) {
prevFrame();
}
This is all very well, but it only goes back one frame and stops. You would have to click the back button 44 times to get back to frame 1!
A Controller Movie Clip is the answer. That is a piece of actionscript that when you click the back button repeatedly says prevFrame(); prevFrame(); prevFrame(); etc. Until you get to frame one then the controller says nothing. In other words you need to be able to switch the instruction on and off. If you could not switch it on and off, when you hit the play button, one bit of script would be saying prevFrame(); and another would say play();. This would cause an obvious conflict.
The controller has to be able to be:
To be able to do this, is absolutely crucial to Flash programming. Here we are going to get a movie to play backwards, but this same principle can be used in hundreds of different ways. At the end of this tutorial you will find links to sample files that use the same system of a controller movie clip to give instructions in a variety of different circumstances.
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|