I export a path from Illustrator to an .swf file. I import this file using the Loader class in actionscript 3.
Now I want to perform a collision test on this path in Flash. Is this possible? Now as3 performs this test on the whole bounds of the swf file. I only need the path. Is this possible?
I export a path from Illustrator to an .swf file. I import this file
Share
Yes that’s possible.
BitmapData.hitTestwill help you (take a look at e.g. this)