(Flash 8) Replacing color fill in movieclips?

Hello all.

I have another small question regarding dynamic color in movieclips. Essentially, I am looking for a way to find a color within a movieclip (like #999999 in the below sample) and replace that color with something else (like #ffd223).

[COLOR=Red]But, I want the stroke around the circle to remain [/COLOR][COLOR=Red]untouched.[/COLOR] So, the script would only find a certain fill, and color only that area.

I tinkered with the *beginFill *method but couldn’t get it working. Any ideas would be much appreciated. =)

(Sorry about the double post. Something messed up on me here.)

– james

Hi Twin. Not exactly, but I appreciate your suggestion.

If I had multiple colors in a movieclip, I don’t want to have to put each on it’s own layer (very time-consuming). So I’m curious if there is a way using actionscript to target a specific RGB value and switch it up with another.

You could use the BitmapData.threshold method for something like that. Or the floodFill, but that will give you jaggies.