Posted By

marzsman on 04/04/11


Tagged

draw rectangle Shape


Versions (?)

Draw a shape


 / Published in: ActionScript 3
 

Draw s simple shape in as3

  1. var shape:Shape = new Shape;
  2. shape.graphics.beginFill(0x002200);
  3. shape.graphics.drawRoundRect(0, 0, 100, 100, 2);
  4. shape.graphics.endFill()
  5. addChild(shape);

Report this snippet  

You need to login to post a comment.