Changing a MovieClip color at Runtime
hi,
i'm attempting create dynamic animation in flash cs3, , i'm having trouble setting color of background inside movie clip @ runtime actionscript.
heres code i'm running change color:
var mycolortransform:colortransform = this['background'].transform.colortransform;
mycolortransform.color = 0xff0000;
this["background"].transform.colortransform = mycolortransform;
"this" movie clip animating (in case arrow thats moving , forth).
and 'background' part of arrow want change color on. movieclip (non animating).
i've been able change color, it's changed animation or arrow moving , forth stops, , i'm not sure how moving again.
any insight appreciated. :)
i'm attempting create dynamic animation in flash cs3, , i'm having trouble setting color of background inside movie clip @ runtime actionscript.
heres code i'm running change color:
var mycolortransform:colortransform = this['background'].transform.colortransform;
mycolortransform.color = 0xff0000;
this["background"].transform.colortransform = mycolortransform;
"this" movie clip animating (in case arrow thats moving , forth).
and 'background' part of arrow want change color on. movieclip (non animating).
i've been able change color, it's changed animation or arrow moving , forth stops, , i'm not sure how moving again.
any insight appreciated. :)
don't animate arrow timeline tweening. use actionscript.
More discussions in ActionScript 3
adobe
Comments
Post a Comment