The effect is as follows:
Click here to download the source file
(1). Press Ctrl+f8 to create a new movie clip, named Line, as shown
(2). Draw a long strip inside the line element, set as Figure
(3) Return to the main scene, press Ctrl+l to open the component library, the line components dragged to the stage, whatever position can be placed in the attribute of the actual column name of line, set as shown
(4). Click the first frame of the main scene to write the following code
max=40;
line._visible=false;//set line movie to Invisible
for (i=1;i<max;i++) {
Copy the movie line, copy the new movie name "line" +i, depth is I
Duplicatemovieclip ("line", "line" +i,i);
With (this["line" +i]) {
_x=i*7+100;//set the new movie x-axis coordinates after replication
_y=200;//set the new movie y-coordinate after replication
_alpha=70;//set the transparency of a new movie after replication
};
};
Onenterframe=function () function causes flash frames to trigger the contents of the code block
Onenterframe=function () {
for (i=1;i<max;i++) {
this["line" +i]._yscale=random (100);//Set the zoom factor for the new movie y-axis after replication
};
};
You can just copy this quick code right over there.