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-4-14

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

package {
    import flash.events.*;
    import flash.utils.Timer;
    import flash.display.Sprite;
    [SWF(frameRate = "60", width="465", height="465")]
    
    public class FlashTest extends Sprite {
        
        private var cnt:uint = 0;
        private var stw:Number = 200;
        private var sth:Number = 200;
        private var radian:Number;
        
        public function FlashTest() {
            graphics.beginFill( 0x00FFFF );
            graphics.lineStyle( 0, 0x00FFFF );
            graphics.moveTo( stw, sth );
            addEventListener( Event.ENTER_FRAME, xLoop );            
        }
        
        private function xLoop(e:Event):void{
            radian = cnt * Math.PI / 180;
            graphics.lineTo( stw + 100 * Math.cos( radian ), sth + 100 * Math.sin( radian ));
            cnt++;
            if ( cnt > 360 ) {
                graphics.endFill();
                removeEventListener( Event.ENTER_FRAME, xLoop );
            }
        }
    }
}