In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Circle line up, Basic, for : flash on 2010-2-6

Get Adobe Flash player
by hazel_eyes 13 Feb 2010
    Embed
/**
 * Copyright hazel_eyes ( http://wonderfl.net/user/hazel_eyes )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/bucP
 */

package {
    import flash.display.Sprite;
    public class circleTest extends Sprite {
        public function circleTest() {
  			var cx:Number = 0;
			var cy:Number = 0;

			for (var j:int=0; j<12; j++) {
				cy = j*40 +20
				for (var i:int=0; i<12; i++) {
					cx = i*40 + 20;
					var circle:Sprite = new Sprite();
					circle.graphics.beginFill(Math.random()*0xffffff);
					circle.graphics.drawCircle(cx, cy, 20);
					circle.graphics.endFill();
					addChild(circle);
				}
			}
        }
    }
}