Re: [Flashcoders] Most efficient way to set a ColorTransform property on a MovieClip

2006-08-04 Thread Mark Walters
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.

[Flashcoders] Most efficient way to set a ColorTransform property on a MovieClip

2006-08-02 Thread Mark Walters
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

Re: [Flashcoders] Most efficient way to set a ColorTransform property on a MovieClip

2006-08-02 Thread Marcos Neves
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