sponsored ads
sponsored ads
0
Hi, i stumbled upon a AS2 solution once which I rewrote to AS3.
var sides:Number = 6;
var radius:Number = 100;
var mc:MovieClip = new MovieClip();
mc.graphics.lineStyle(1,0x000000,1);
mc.graphics.moveTo(radius,0);
for (var i:Number = 0; i<=360; i += 360/sides) {
var radians:Number = i*Math.PI/180;
var xPos:Number = Math.cos(radians)*radius;
var yPos:Number = Math.sin(radians)*radius;
mc.graphics.lineTo(xPos,yPos);
}
mc.x = stage.stageWidth/2;
mc.y = stage.stageHeight/2;
addChild(mc);
0
Download Tutorial of Adobe Photoshop CS4 Tutorial
Answered Sep, 29 2010
0
Search for Related Topics
draw hexagon solidworks draw hexagon visio hexagon zeichnen 3d hexagon button gimp hexagon j2me hexagon viso flash tutorial draw hexagon actionscript 3 draw hexagons draw fill hexagon c# making sunshine beams gimp making celebrity fakes gimp
Related Unresolved Questions
sponsored ads
0 disk hard repair track accidentally account deactivate favourite tweet unfavourite tamilrichauntyfacebook 1.31 austrian download simulator truck 7 f1 f9 faster macro windows char flow smartart como cs5 eliminar en illustrator
Continue to downloadPower by Afreecodec.com