1. Open the “Document properties” window and set the background color as black and frame rate as 15 fps, then click “ok”.
2. Ctrl + F8 to insert a movie clip named “movie_mc” and import a poster for an old movie. Then click Ctrl+I to set the x and y coordinate as “0” in order to make sure the top left corner of the picture is at the center so that you can set the coordinate value easily when you use action script.
3. Go back to main scene and drag the movie_mc to the scene. After that, use Ctrl + K to set the Align of the movie clip. Click “To stage” and then choose “Align horizontal center” and “Align vertical center”.
4. Click movie clip and press F9 then input action script as below:
onClipEvent(enterFrame) {
this._x = Math.random()*2 + 90;
this._y = Math.random()*2 + 60;
this._alpha = Math.random()*30 + 50;
}
onClipEvent triggers actions defined for a specific instance of a movie clip. This refers to the object (movie clip). _x and _y can change the place of the movie clip. _alpha can change the transparency of the movie clip. Math.random can produce a number from 0 to 1.
Simple, isn’t it?




Can I see the final result?
By: Internet Marketing on March 2, 2009
at 5:58 am