ScaleCursor.as 792 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.imt.intimamedia.helpers
  2. {
  3. import flash.display.Graphics;
  4. import flash.display.Shape;
  5. public class ScaleCursor extends Shape
  6. {
  7. public function ScaleCursor()
  8. {
  9. Draw();
  10. }
  11. public function Draw():void
  12. {
  13. var graph:Graphics = graphics;
  14. graph.clear();
  15. // 2 lignes verticales
  16. graph.lineStyle(1, 0xf98d00);
  17. graph.moveTo(-4, -5);
  18. graph.lineTo(-4, 6);
  19. graph.moveTo(4, -5);
  20. graph.lineTo(4, 6);
  21. // 3 lignes horizontales
  22. graph.lineStyle(1, 0xf98d00, 1);
  23. graph.moveTo(-4, -4);
  24. graph.lineTo(4, -4);
  25. graph.moveTo(-4, 0);
  26. graph.lineTo(4, 0);
  27. graph.moveTo(-4, 4);
  28. graph.lineTo(4, 4);
  29. graph.moveTo(0, -4);
  30. graph.lineTo(0, 21);
  31. }
  32. }
  33. }