So I guess what we're coming down to, is the fact that you have to
have at least 3 lines of code: one for initializing the ColorTransform
object, another for setting the ColorTransform value, and still
another for setting the MovieClip's colorTransform property to the new
ColorTransform object.
F
This is a classic object oriented problem. The MovieClip canĀ“t know
that the rbg property has changed from his ColorTransform property.
There ar 3 solutions:
The first is the easier for Macromedia but worst for us programers.
The movieClip, update its ColorTransform when you set it, like this
mc.c
What would be the quickest most efficient way to apply a
ColorTransform and set the rgb property on a MovieClip?
With the Color object, you could use the following line:
(new Color(my_mc)).setRGB(0x00);
... and if you extended the Color class and added an rgb getter
setter, the following wo
3 matches
Mail list logo