AS: Main, the one thread TO RULE THEM ALL!
AS: Duplicated Movie Clips
AS: Frame Functions
------------------------------------------
---------------------------------------
I was trying to do a blur effect, but i came across this in a failed attempt, first, make a picture (any will do, as this will move everything in the flash), then on the frame, add this script, it is explained in the script:
onLoad = function(){//functions are a useful way of simulating onClipEvent's without using a movie clip
i = 1;// sets a variable called "i" to 1
}
onEnterFrame = function(){
i ++;// "i" adds 1
_root.duplicateMovieClip("root"+i,1000+i);
// duplicates _root
["root"+i]_alpha = random(101); // gives the new duplicate a random alpha
["root"+i]_x = random(200)- 100;// gives it a random x
["root"+i]_y = random(200)- 100;// gives it a random y
["root"+i]_xscale = random(200);//gives it a random width
["root"+i]_yscale = random(200);//gives it a random height
}
kewl, no?