开发者

Flash AS3 find closest point to handrawn path

I ha开发者_运维问答ve a path drawn in the flash IDE, accessible as a MovieClip.

With AS3 I need to find the closest point lying on this path to another point.

How can I do that?


A trick I've used in the past is to convert the path to a motion guide, then create a simple timeline tween where a simple MC travels from start to finish. then export that animation as an Animation/XML. you've now got a list of points with timing info to use however you want. (writing from my phone so I can't look up the exact syntax within the IDE.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜