Draw a Arrow Marker (For a slider or map)


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.