I have a stationary movieClip (house) that contains embeded, animated movieClips (Siding). When I hit a button to change the color of one of the embedded movieClips, that particular clip starts moving while the animation continues everywhere else.
My code is very simple.
button.addEventListener(MouseEvent.CLICK, changecolor);
function changecolor(e:MouseEvent) {
var siding_color:ColorTransform=house.Siding.transform.colorTransform;
siding_color.color=0xCCCC99;
house.Siding.transform.colorTransform=siding_color;
}
Why is my ‘Siding’ movie clip stopping when the color is changed? How can I avoid this?
Thanks!
Aaron