sivaramaiah  
 
  Record11 09/20/2017 9:40pm (UTC)
   
 
Record 11: Drawing a Circle
function drawcircle(r,x,y)
{
this.createEmptyMovieClip("circle_mc",1);
with(circle_mc)
{
var angle=Math.PI/4;
var d=r/Math.cos(angle/2);
var angle1=0;
var rx,ry,ax,ay;
this.moveTo(x+r,y);
for(var i=0;i<8;i++)
{
angle1+=angle;
rx=x+Math.cos(angle1-(angle/2))*d;
ry=y+Math.sin(angle1-(angle/2))*d;
ax=x+Math.cos(angle1)*r;
ay=y+Math.sin(angle1)*r;
this.lineStyle(0,0x0000FF,100);
this.curveTo(rx,ry,ax,ay);
}
}
}
drawcircle(100,100,100);

 
  Menu Items
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

  add
HOT TOPICS
MCA PROJECT DETAILS ------------------------------------- Jntu all Lab manuals ------------------------------------- Jntu Syllabus Books ------------------------------------- Paper presentations ------------------------------------- Seminars ------------------------------------- Campus Papers ------------------------------------- Competetive Exams GATE ------------------------------------- GRE ------------------------------------- TOEFL ------------------------------------- IELTS ------------------------------------- CAT ------------------------------------- GMAT ------------------------------------- Templates ------------------------------------- Students Resume Preparation tips ------------------------------------- Job zone(Interview questions) ------------------------------------- Google Adsence html code ------------------------------------- Web sites --------x--------------x-----------
  Advertisement
  Advertisement

 


-----------------------------
  Offline Messages
  Adds
  Visitors Information
Today, there have been 66440 visitors (187960 hits) on this page!
=> Do you also want a homepage for free? Then click here! <= --------------------------------------------------