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 2011-6-9

Get Adobe Flash player
by lazerBomb 09 Jun 2011
    Embed
/**
 * Copyright lazerBomb ( http://wonderfl.net/user/lazerBomb )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/gYz0
 */

package {
    import flash.events.Event;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public var container:Sprite = new Sprite
        
        public function FlashTest() {
            addChild(container)
            stage.addEventListener(Event.ENTER_FRAME, onFrame, false);
        }
        public function onFrame(e:Event):void {
            var n1:Sprite = new Sprite
            n1.graphics.beginFill(Math.random()*0xFFFFFF)
            n1.graphics.lineStyle(1)
            n1.graphics.drawCircle(Math.random()*500, Math.random()*500, )
            container.addChild(n1)
            addChild(container)
            if (container.numChildren > 100) {
                container.removeChildAt(0)
            }
            container.getChildAt(Math.random()*container.numChildren).y += 10

        }

    }
}