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

point.polar

http://help.adobe.com/ko_KR/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7dca.html
Get Adobe Flash player
by SkywaveTM 28 Jul 2011
/**
 * Copyright SkywaveTM ( http://wonderfl.net/user/SkywaveTM )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/7VQP
 */

// I didn't mean to make that shape, but it looks nice (at least for me)
//(+) animation added.

/*

그냥 한 점을 중심으로 20도의 각도마다 작은 원을 그리려고 했는데
실수로 원의 반지름값을 크게 줬더니 겹치는부분마다 흰색으로 처리되서 저런 모양이...

그런데 볼만해서 걍 수정 안하고 이상태로 업.

(+)뭔가 심심해서 애니매이션 추가.

*/

package {
    import flash.events.Event;
    import flash.display.Sprite;
    import flash.geom.*
    public class FlashTest extends Sprite {
        public function FlashTest() {
            
            var position:Point = new Point;
            var i:Number = new Number;
            var multiplier:Number = 1.02;
            var rad:Number = 10;
            var myObject:Sprite = new Sprite();
            
            
            this.addChild(myObject);
            myObject.x = 200;
            myObject.y = 200;
           
            
            stage.addEventListener(Event.ENTER_FRAME, refresh);
            
            function refresh():void
            {
                if(rad >= 100)
                {
                    multiplier = 0.98;
                }
                
                if(rad <= 5)
                {
                    multiplier = 1.02;
                }


                i = 0;
                myObject.graphics.clear();
                myObject.graphics.beginFill(0xFF0000);
                rad = rad*multiplier;
                while(i<18)
                {
                    position = Point.polar(50, 2*Math.PI* (20/360)*i)
                    myObject.graphics.drawCircle(position.x, position.y, rad);
                    i++;
                }
                
                            
            }

        }
    }
}