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

Flower

Get Adobe Flash player
by fila 02 Jun 2015
    Embed
/**
 * Copyright fila ( http://wonderfl.net/user/fila )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aqwh
 */

package {
    import flash.display.Graphics;
    import flash.events.Event;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        private var _n:Number = 1;
        public function FlashTest() {
            super.addEventListener( Event.ENTER_FRAME, this.enterFrame );
        }
        private function enterFrame( event:Event ):void {
            var graphics:Graphics = super.graphics;
            graphics.clear();
            graphics.lineStyle( 1.0, 0xFF0000 );
            for ( var t:Number = 0.0; t < 6.28318531; t += 0.005 ) {
                var r:Number = 100 * Math.pow( Math.sin( this._n * t ), 0.2 );
                if( isNaN(r) ) continue;
                graphics.moveTo( 250, 250 );
                graphics.lineTo(250 + r * Math.cos( t ), 250 + r * Math.sin( t ));
            }
            this._n += 0.05;
        }
    }
}