Pixel position, based on its color - Attaching a movieclip along a path
Hi.
How could I find, a pixel´s position, based on its color?
Let´s say:
We have a red path drawn on stage, we make it a movieclip, we make a bitmapdata of that movieclip.
Then, I want to find the position (x and y coordenate) of a given red pixel, within the bitmapdata.
I have a movieclip, called 'footstep';
I have a red path movieclip, called 'path'.
How could I attach, the 'footstep' movieclip, a number of times, within an interval, along that 'path' movieclip?
And also, calculate the 'footstep' rotation, based on the path direction.
Thanks.