3
\$\begingroup\$

How can I draw a dashed curved line to a x,y point in as3? Basically I'm creating a game where you have a turret, and I want the arc the turret would fire a projectile along to be displayed as a dashed/dotted line along the arc to wherever the mouse x,y is. Ideally it would use the drawing API, rather than using any bitmap manipulation.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

IIRC it's not natively supported. You'll have to look for a library that does this, or write your own. Writing your own would involve a bit of maths, so a 3rd party library may be easier.

\$\endgroup\$
1
  • \$\begingroup\$ degrafa would be such a library. \$\endgroup\$
    – bummzack
    Commented Dec 15, 2011 at 23:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .