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

nostalgi

remembeer the macromedia flash 5
/**
 * Copyright c80609a ( http://wonderfl.net/user/c80609a )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/pe2n
 */

// forked from c80609a's flying televisors
package {
    
    import flash.display.Shape;
    import flash.events.Event;
    import flash.display.Sprite;

    public class FlashTest extends Sprite {
       
       public function FlashTest() {
           
            // write as3 code here..
            addEventListener(Event.ADDED_TO_STAGE,function():void {                
                stage.scaleMode = 'noScale';
                stage.align = 'TL';
                stage.frameRate = 30;
            });
            
            x = y = 200;
            var arr:Array = [];
            var s:Shape;
            
            for (var i:uint = 0; i < 30; i++) {
                s = new Shape;
                s.graphics.beginFill(i * 03000,.7);
                s.graphics.drawRoundRect(10+i,10+i,i + 10,i * 10,30);
                s.graphics.endFill();
                addChild(s);
                arr.push(s);
            }
            
            addEventListener(Event.ENTER_FRAME, function():void {
                var i:uint;
                for each (s in arr) {
                    s.rotation += i++;
                }
                
                rotation += .6;
                rotationY += .4;

            });
 
            
        }
    }
}