Dynamically texture images using AS

[COLOR=black][FONT=‘Verdana’,‘sans-serif’]I need some help to figure out how to dynamically texture and colorize a master image ( Shirt) with swatches of patterns using action script in Flash.

Any pointers or e.g of scripts will be much appreciated[/FONT][/COLOR]