Flash Script - 3D Perspective Moving Effect


Many Flashers asked me how to create a 3d perspective effect, so here it is! Download the sample files here.

1. Create a grid using the line tool:

Flash Script - 3D Perspective Moving Effect

Convert this to a graphic object.

3. Make a duplicate of the graphic, and mirror it as shown below:

Flash Script - 3D Perspective Moving Effect

4.Create a line as shown below.

Flash Script - 3D Perspective Moving Effect

Convert this to a movie clip.

5. Give this movie clip an instance name of line.

6. Go to the timeline of the line movieclip, and create three keyframes as shown below.

Flash Script - 3D Perspective Moving Effect

7. In the first keyframe, insert the action:

y = /:initpos  incr = 1;

8. In the second keyframe, insert:

setProperty ("", _y, y);  y = y+incr;  incr = incr + .2;

9. In the third keyframe, insert the action:

gotoAndPlay (2);

10.Go back to the main time line, create two layers above the existing layer, and name them as shown below.

Flash Script - 3D Perspective Moving Effect

Make sure that the line movieclip is in the line layer.

11.Select the 8th frame of all the layers, and press f5. This will extend the frame to the 8th.

12. Go to the actions layer and in the first frame, insert the action:

initpos = getProperty("/line",_y);  y = initpos;  incr = 1;  18.In the second frame give action:  duplicateMovieClip ( "/line","line" add incr, incr);  incr = incr + 1;  if((getProperty("/line" add incr,_y)) > 400)  {  removeMovieClip ("/line" add incr);  } 

13. In the last frame, inser the action:

gotoAndPlay (2);

Replay

Category: software Time: 2003-04-28 Views: 1
Tags:

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.123 (s). 12 q(s)