Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.display.GraphicsPath;
  2.  
  3. var gp:GraphicsPath=new GraphicsPath();
  4. gp.lineTo(100,0);
  5. gp.lineTo(100,100);
  6. gp.lineTo(0,100);
  7. gp.lineTo(0,0);
  8.  
  9. gp.moveTo(25,25);
  10. gp.lineTo(25,75);
  11. gp.lineTo(75,75);
  12. gp.lineTo(75,25);
  13. gp.lineTo(25,25);
  14.  
  15. graphics.beginFill(0x00AAFF);
  16. graphics.drawPath(gp.commands,gp.data,gp.winding);
  17. graphics.endFill();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement