Advertisement
ealbinu

Draw Rectangle Function

Oct 3rd, 2011
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function rectangle(drow:MovieClip, X:Number, Y:Number, W:Number, H:Number) {
  2.     drow.beginFill(0x334455,100);
  3.     drow.moveTo(X,Y);
  4.     drow.lineTo(W + X,Y);
  5.     drow.lineTo(W + X,H + Y);
  6.     drow.lineTo(X,H + Y);
  7.     drow.lineTo(X,Y);
  8.     drow.endFill();
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement