Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted by Mihey ( 15 years ago )
private function drawArrow(graphics: Graphics, atLine:Line):void {
var from: Point = atLine.from;
var to: Point = atLine.to;
var angle: Number = atLine.angle;
graphics.moveTo(to.x, to.y);
graphics.lineTo(to.x - l * Math.cos(angle - dAngle), to.y - l * Math.sin(angle - dAngle));
graphics.moveTo(to.x, to.y);
graphics.lineTo(to.x - l * Math.cos(angle + dAngle), to.y - l * Math.sin(angle + dAngle));
}
Revise this Paste