Posted By

sidneydekoning on 06/05/09


Tagged

maps map slider arrow Drawing marker


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sweetbabyyoung
weavermedia


Draw a Arrow Marker (For a slider or map)


 / Published in: ActionScript 3
 

  1. // Draw a slider marker looks like a square with a triangle on top of it, seamlessly connected
  2. var s:Sprite = new Sprite();
  3. s.graphics.lineStyle(1,0x333333,1,true,'none');
  4. s.graphics.moveTo(4,0);
  5. s.graphics.lineTo(0,4);
  6. s.graphics.lineTo(0,11);
  7. s.graphics.lineTo(8,11);
  8. s.graphics.lineTo(8,4);
  9. s.graphics.lineTo(4,0);
  10. addChild(s);

Report this snippet  

You need to login to post a comment.