Posted By

arpo on 12/22/08


Tagged


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

jpdevries
THEPWN3R
markaltman
loric
elkraneo


Draw rectangle


 / Published in: ActionScript 3
 

  1. var rect:Shape = new Shape();
  2. rect.graphics.lineStyle(1,0xffff0000);
  3. rect.graphics.beginFill(0xff00ff00);
  4. rect.graphics.drawRect(0, 0, 100, 100);
  5. rect.graphics.endFill();
  6. addChild(rect);

Report this snippet  

You need to login to post a comment.