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

Just a test (nothing ineresting)

Get Adobe Flash player
by ke.kurono 20 Oct 2015

    Talk

    O_MEG_A at 12 Jun 2015 11:09
    Hi Kei Can I have your E-mail ?
    Embed
package {
    import flash.display.AVM1Movie;
    import flash.display.Graphics;
    import flash.display.Sprite;
    import flash.events.Event; 
    import flash.text.TextField; 
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            trace();
            
            if (stage) {
                init();
            } else {
                addEventListener(Event.ADDED_TO_STAGE, init);
            }

        }
        
        private function init(e:Event=null):void {
            removeEventListener(Event.ADDED_TO_STAGE, init);
            
            addGUI();
        }
        
        private function addGUI():void {
            var tf:TextField = new TextField();
             tf.text = "do";
            
            var s:Sprite = new Sprite();
            var g:Graphics = s.graphics;
            g.beginFill(0x00ccff, 1);
            g.drawCircle(10, 10, 20);
            g.endFill();
            
            addChild(s);
            addChild(tf);
        }
    }
}