Your Ad Here

Posted By

arpo on 01/22/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

abbey


Draw round rectangle


 / Published in: ActionScript 3
 

  1. var rect:Shape = new Shape();
  2. rect.graphics.lineStyle(5, 0x00ff00, 1); //Last arg is the alpha
  3. rect.graphics.beginFill(0xff0000, 1); //Last arg is the alpha
  4. rect.graphics.drawRoundRect(0, 0, 100, 100, 25, 25)
  5. rect.graphics.endFill();
  6. addChild(rect);

Report this snippet  

You need to login to post a comment.