Does someone know how to distribute a n number of sprite of a top half circumference of a cicrle. I have this, but cant figure out the offset.

function plot():void {
        var totalNumbers:int = 5;
        var slice:Number =   ( 180 / totalNumbers );

        var p:Point;

        for (var n:Number=0; n < totalNumbers; n++) {
                var angle:Number =  slice* n
                var rad:Number =  (Math.PI / 180 * angle);
                var vx:Number = Math.sin( rad );
                var vy:Number = Math.cos( rad );
                var c:clip = new clip()
                c.x = 300 + vx * 100
                c.y = 300 + vy * 100
                addChild( c )
        }
}

Thnx,

Jri

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to