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 2015-7-9

Get Adobe Flash player
by mutantleg 09 Jul 2015
    Embed
/**
 * Copyright mutantleg ( http://wonderfl.net/user/mutantleg )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/dWOo
 */

package {
    import flash.events.Event;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            
            stage.addEventListener(Event.ENTER_FRAME, onEnter);
        }//ctor
        
        public var gt:int = 0;
        
        public function onEnter(e:Event):void
        {
            graphics.clear();
            graphics.lineStyle(2,0);
            
            var ang:Number; var ta:Number;
            var ax:Number; var ay:Number;
            ax = 230; ay = 230;
            ang = gt*0.2;
            
            ay = 230 + Math.sin(ang+1.57) *8;
            
            graphics.drawCircle(ax,ay,32);
            ta = ang;
            var kx:Number; var ky:Number;
            var i:int; var d:Number; var sa:Number;
            d=80;//64;
            for (i=0;i<4;i++)
            {
             kx = ax+(i*32)+48;    ky = ay;
             sa = Math.sin(ta+i*0.4); if (sa < 0) { sa*=0.5; }
             ky += sa * (d*(i+1)*0.2);
             graphics.drawCircle(kx,ky, 16-i*4);
             
             kx = ax-(i*32)-48;   
             graphics.drawCircle(kx,ky, 16-i*4);            
            }//nexti
            
            kx = ax - 24+Math.sin(ta)*4; 
            ky = ay+64;
            graphics.drawCircle(kx,ky,8);

            kx = ax  + 24+Math.sin(ta+3.1415)*4; 
            graphics.drawCircle(kx,ky,8);
            
            
            kx = ax; 
            ky = ay -16 + Math.sin(ta+1.57)*12;
            graphics.drawCircle(kx,ky,16);
            
            gt+=1;
        }//onenter
        
    }//classend
}