This content has been marked as final. Show 3 replies
your best bet is to work up some math calculations to approximate the location of the line relative to the movie's position and test against that (trigonometry anyone?).
*or* you could draw a line in flash that looks like the squiggly line and put it in a movie clip that is attached to the image file. you can do hit detection on that object instead of your original image as long as your wavy line movie clip and the image file are always locked together.
There's a getPixel() function in the BitmapData class, available since Flash 8. If the line's color is known and unique in the image (e.g. black line on white background), it should be possible to loop through all y values at a given x, and check for the line's color value. All you need to do is create a BitmapData object from the image or from the MC containing the image, see the BitmapData entry in the Flash Help.