You're Rad if you know how to do this...

Hello my colleague Flashophiles

So, I bow down to you if you know how to help me with this one.

I have a MovieClip in my Flash file that emulates a signature under development by animating a mask that covers more than a little more of the underlying bitmap (of the static, real signature) image by image. I am interested in allowing the signature public static color in the bitmap to dynamically set. Here's the pseudo-code with that until now I came:

-Access the bitmap in the MovieClip
-Replace each pixel of the bitmap black (somehow) (signature is black, the background white) with a pixel that is the chosen color
-addChild the MovieClip to the main timeline

I am also considering separating the bitmap of the MovieClip and just adjust the mask MovieClip dynamically...

Any ideas on a any part of the present? You're rad!

Thank you
Graham

Sorry hutn.jimbo - who doesn't, this will create all the bounding box of the selected color. We need get here a little 'amateur' ;)

You can do something like this using the bmp.threshold method - however, 'how' you do are different depending on the way in which in which you have instantiated the bmp. If it is "placed" on the stage in the MC as you described, it will be much harder, because I am assuming that the first image of the MC will have the bmp basically 'not visible' so that it can be revealed by your mask animation. should that happen, it's that you attract the bmp in a bitmapData object and run the method of threshold in search all "black" pixels and set them up the new color. It would be much simpler if the image was brought to the vibrant scene in which you can perform these procedures before the image/mc becomes visible.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for