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

flying televisors

How to interact with this?
> just run, modify params

What inspired you?
> hmmm...

Core logic explanation?
> ...

Requests for viewers?
> ...
/**
 * Copyright c80609a ( http://wonderfl.net/user/c80609a )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/nnTx
 */

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 < 10; i++) {
                s = new Shape;
                s.graphics.beginFill(i * 03000,.7);
                s.graphics.drawRoundRect(10*i,10*i,120,120,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;

            });
 
            
        }
    }
}