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

MonsterDebugger is now available!

Get Adobe Flash player
by 9re 26 Apr 2011
    Embed
/**
 * Copyright 9re ( http://wonderfl.net/user/9re )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/gvDN
 */

package {
    import flash.display.Sprite;
    import com.demonsters.debugger.MonsterDebugger;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var size:int;
            var box:Box;
            for (var i:int = 0; i < 5; ++i) {
                size = 400 - 50 * i;
                box = new Box(size);
                box.x = box.y = (465 - size) >> 1;
                addChild(box);
            }
            MonsterDebugger.initialize(this);
            MonsterDebugger.trace(this, this);
        }
    }
}
import flash.display.Sprite;

class Box extends Sprite {
    public function Box(size:int):void {
        graphics.beginFill(0x333333, 0.3);
        graphics.drawRect(0, 0, size, size);
        graphics.endFill();
    }
}