You Are Rad If You Know How To Do This...

Hello My Fellow Flashophiles
So, I will bow down to you if you know how to help me with
this one.
I have a MovieClip in my Flash file which emulates a
signature being drawn by animating a mask that covers over a bit
more of the underlying bitmap (of the actual, static signature)
frame by frame. I'm interested in allowing the color of the static
signature in the bitmap to be set dynamically. Here's the
pseudocode I've come up with so far:
- Access the bitmap in the MovieClip
- Replace (somehow) every black pixel in the bitmap (the
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 from the
MovieClip and just setting the MovieClip as its mask
dynamically....
Any ideas on any part of this? You're rad!
Thanks,
Graham

Oh! Cbeech is the winner once again... I'm really starting to
owe you, friend. Thanks once again for your invaluable help...
So, yes, I decided it would be best to strip the bitmap out
of the mc. Instead, I load it programmatically, apply the threshold
method (I
knew there had to be such a function! -- thanks, Beech!),
then set the animation as the mask programmatically. Note to
Cbeech: the colors for both the bground and the signature are
selected via the sampling method you helped me with before.
Here's the outcome:
http://www.catherinemix.com/cmix8.html
A lot of work for modest results, but I suppose that's the
name of the game. I'm not complaining, tho. My understanding grows
geometrically, and it's fun!
Be Well,
Graham

Similar Messages

Maybe you are looking for