Add the following code onto the first frame:
Now drag your car movie clip (located in the library) onto the stage. In order for the ActionScript to reference the car movieclip, be sure to give it the variable name 'car_mc' in the properties menu. Also, make sure you set your X, Y coordinates to 0,0 :
The last thing we need to do is apply the stop points inside the car movie clip. To do this, double-click the car movieclip on the stage. This should bring you back to the car_mc timeline.
To prevent the movieclip from starting before we have initiated a click, you must add the following line to the first frame of the car_mc timeline:
Next you must add code to the first stop point. Go to the frame where the end of the zoom in occurs and add the following code:
The frame referenced in the above code (_parent.frame) should be referencing the next frame number of the first stop point. For example, in this case, frame 11 is the frame where the zoom-in ends and there is a non-blurred image. We are going to tell Flash that on the next click, go to frame 12 to intiate the zoom out sequence (the images you reversed).
To complete the zoom-out, and reset the function for another zoom-in, add the following code to the last frame of the sequence:
The timeline of car_mc should look something like this:
Now, go back to main scene and run your movie!
I have provided the .fla for the tutorial above for further help.
I hope this has helped! Good luck with your motion blur transitions!
|» Level Basic|
Rating: 8 Votes: 17
|Spiro Mifsud currently a technical director for a interactive media agency in Los Angeles.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|