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

flash on 2010-4-13

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

package {
    import flash.display.Sprite;
    import flash.events.Event;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            
            var baseWidth:Number = stage.stageWidth;
            var baseHeight:Number = stage.stageHeight;
            x = baseWidth / 2.0;
            y = baseHeight / 2.0;
            with (graphics)
            {
	            for (var i:uint = 0; i < 100; i++)
	            {
	            	    beginFill(Math.random() * 0xFFFFFF, Math.random());
	            	    drawCircle(baseWidth * Math.random() - x,
	            	        baseHeight * Math.random() - y,
	            	        Math.random() * 50);
	            	    endFill();
	            }
	        }
	        
	        addEventListener(Event.ENTER_FRAME,
	            function(event:Event):void
	            {
	            	    rotationY += 2;
	            });	
        }
    }
}