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. :)

don't animate arrow timeline tweening. use actionscript.


More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support