If you just want to change the colour of the entire T-shirt, take a
look at the class:

flash.geom.ColorTransform

(accessed via displayObject.transform.colorTransform)

or look at doing it via a filter:

flash.filters.ColorMatrixFilter

If you want to colour the individual segments of the shirt separately,
you need to split the image apart into different clips/layers first,
then use one of the two method above.

HTH,
   Ian

On Fri, Oct 30, 2009 at 1:01 PM, Dave Dev <[email protected]> wrote:
> What's a quick way to colorize an image drawn with vector shapes in various
> shades of gray. I have a character with a t-shirt and I want to be able to
> change the color of the t-shirt using code at runtime. The t-shirt was drawn
> in illustrator and uses various shades of gray to depict the details.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to