Flash Case study: a randomized-ray results
Animation effects:
Click here to download the source files
This result is mainly to the procedures to complete, of course, Lo animation can be designed to achieve similar results, but the merits of the program and can greatly reduce the volume of documents. Below a brief introduction of the design process:
First to be a simple single-ray gradual animation, depositors do a mc known as movie1_mc, this estimate can be easily done by everyone, not said.
Next, the production of the second links the name ID movie2_mc the mc, the time frame placed on a first-ching movie1_mc examples, examples of the same name, also known as movie1_mc, and then write code as follows:
Var j = 12;For (var i = 1; i <= 29; i)
(
Movie1_mc.duplicateMovieClip ( "movie" i, i);
SetProperty ( "movie" i, _rotation, j);
J = 12;
)
Mean every angle to 12 degrees on a copy movie1_mc example, a total of 29 replication.
Well, the basic elements to now we do a good job, and now back to the time frame in the first-ching on the preparation of the code below:
AttachMovie ( "movie2_mc", "movie2_1_mc" 1);SetProperty ( "movie2_1_mc" _x, 200);
SetProperty ( "movie2_1_mc" _y, 200);
/ / Set examples above coordinates
Movie_color = new Color (movie2_1_mc) p1 = random (256);
P2 = random (256);
P3 = random (256);
Pp = String (p1) p2 p3;
Movie_color.setRGB (Number (pp));
/ / Set up more than its color, we can see that the color is a random change.
13-ching, and then prepare a similar code, the case is nothing more than a name change yourself, it should be noted that not forget the depth to remove, or otherwise it will be a reproduction of the front of the Chongdiao examples.
Finally, in the 25-ching wrote:
GotoAndPlay (1);





Leave a Reply