Share Posted October 10, 2008 hi, i have tried looking everywhere for documentation on the create() method, however i can't seem to find any, can you give a brief explanation on it please, thanks Link to comment Share on other sites More sharing options...
Share Posted October 10, 2008 Which class are you talking about? Link to comment Share on other sites More sharing options...
Author Share Posted October 10, 2008 whoops, it's the ColorTransformProxy class Link to comment Share on other sites More sharing options...
Share Posted October 10, 2008 Yep, I JUST added that last night actually. I'll be sending out a notification to Club GreenSock members shortly. Basically, the new create() method prevents you from creating more than one proxy per DisplayObject/MovieClip. Some people were spawning new proxies every time a button was rolled over or off, and they had conflicts with multiple proxies trying to control the color of a single DisplayObject/MovieClip. When you use the new create() method, it checks to see if there's already a proxy for that particular object. If so, it returns that proxy, and if not, it creates a new one and returns it. I also added a "target" property that allows you to get/set the target of the ColorTransformProxy. OLD WAY: var ctp:ColorTransformProxy = new ColorTransformProxy(my_mc); NEW WAY: var ctp:ColorTransformProxy = ColorTransformProxy.create(my_mc); I'll send you a link shortly... Link to comment Share on other sites More sharing options...
Author Share Posted October 10, 2008 ohh very nice man, i look forward to the email Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now