I'm looking for someone experienced in actionscript and the use of bitmapdata in actionscript.
What I need: when someone clicks a part of a movieclip (containing a loaded jpeg file), it should save the position of all similar colors around that selected point, just like a magic wand would do.
For example, if someone clicks a part of a white cloud, it should save the coordinates in an array of the entire cloud since the cloud is all white.
I have started working on this, but it doesn't seem to do what I want, attached is the actionscript code.