I am a flash noob, but can code in other languages.
I want to use flash’s gui to do some tweens, creating line black and white drawings (which I know how to do).
NOW THE CHALLENGE:
I now want to be able to extract/infer from the stage which pixels are black and which are white (and fill up a array).
I have two lines of inquiry;
-
Convert the vectors created by the tweens into a “bitmapdata” and then use the getPixel() method to reference the pixels. - This would be great for me (if I could do this on a frame by frame basis), but I do not know how to convert the tween created vector into a bitmapdata object - Help!
-
Do some magic and be able to know what vector lines are on the stage, including their position, length etc.
Any help greatly appreciated, I am stuck!