Help needed controlling the timeline speed of a movie clip.
Hello! I'm having difficulty finding out how to control the timeline speed of a movie clip which i have created and placed on stage. I have attached the FLA file with this post but I will, however make efforts to describe it and what I would like to do with it...
On the stage of the FLA file there is an instance of a movie clip with three mask like faces, which I have named "logo", and an instance of a movie clip with a button in it, which I have named "entrez".
There are three layers in the timeline, which lasts 30 frames in this movie...
1. actions
2. logo
3. button
In frame one of the actions layer I have placed the following actionscript:
stop();
In frame 30 of the actions layer I have placed the following actionscript:
_root.logo.gotoAndPlay("stopanim");
By looking at this actionscript you must have guessed that it controls the timeline in the movie clip instance named "logo".
I have attributed the following actionscript to the "entrez" movie clip button:
on (release) {
gotoAndPlay(2);
_root.logo.gotoAndPlay("startanim");
}
This is so that the main timeline goes to frame 2 and plays and that the movie clip "logo"'s timeline goes to the frame labelled "startanim", which also happens to be frame 2.
Note that in frame 2 of the main timeline I have placed the following actionscript in order to make sure the movie plays from that frame onwards:
play();
OK... Now to describe the movie clip instance, "logo":
There are 5 layers in the movie clip's timeline.
1. labels
2. actions
3. face 1 (the rotary animation for face1)
4. face 2 (the rotary animation for face2)
5. face 3 (the rotary animation for face3)
Frame 1 in the "labels" layer has been labelled "stopanim" and frame 2 has been labelled "startanim"
Frame 1 in the actions layer has the following actionscript:
stop();
Frame 2 in the actions layer has the following actionscript:
play();
and frame 29 in the actions layer has the following actionscript:
gotoAndPlay("startanim");
As you may have guessed, after having read all this... When you see is the inanimate logo and the button. When you press the button on the main stage it tells the main timeline to go to frame 2 and play and at the same time it tells the movie clip, "logo", to play frame 2 ("startanim"), and therefore start the animation of the logo. When it reaches the last frame of the logo timeline it is told to go back to frame 2 ("startanim") again, hence a loop, which allows the logo to rotate infinitely.
When the main timeline reaches frame 30, the actionscript tells the "logo" movie clip to go back to frame 1, labelled "stopanim", which as you may have guessed stops the animation loop.
This is all good because the result is that I get a full loop cycle within the 30 frames and then it stops.
What I would like to do is that, when I press the button, the logo animation begins slow but accelerates gradually to a fast spin, where the logo spines a couple of times and then slows down again before the main timeline gets to frame 30.
Is it possible to do this? and if so... How?!?
Thanx in advance and I much appreciate the time of he who finds me a solution. I will continue searching...
Thank you again.
Have a nice day!
Oh and please excuse the long and tedious description lol