// script and comments by CleverPig (www.cleverpig.com) //expects a 600x300 stage with a dark background colour // //empty clips for drawing... _root.createEmptyMovieClip("drawing",1); _root.drawing.createEmptyMovieClip("sq",1); // centre the 'drawing' mc on the stage... _root.drawing._x=300; _root.drawing._y=150; // draw a solid white 4x4 square in the 'sq' mc _root.drawing.sq.beginFill(0xffffff,100); _root.drawing.sq.moveTo(-2,-2); _root.drawing.sq.lineTo(2,-2); _root.drawing.sq.lineTo(2,2); _root.drawing.sq.lineTo(-2,2); _root.drawing.sq.lineTo(-2,-2); _root.drawing.sq.endFill(); // hide the original 'sq' off stage _root.drawing.sq._y=1000; // make 198 copies of the square for( i = 2; i<200; i++) { //note: random(600)-300 gives a random integer between -300 & 299 initOb={_x:random(600)-300, _y:random(300)-150} _root.drawing.sq.duplicateMovieClip("s"+i,i,initOb); }