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.)
精彩评论