Jump to content

Guest RebuiltJorge

create() method [SOLVED]

Moderator Tag

Recommended Posts

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

Which class are you talking about?

Link to comment
Share on other sites

whoops, it's the ColorTransformProxy class

Link to comment
Share on other sites

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.



var ctp:ColorTransformProxy = new ColorTransformProxy(my_mc);



var ctp:ColorTransformProxy = ColorTransformProxy.create(my_mc);


I'll send you a link shortly...

Link to comment
Share on other sites

ohh very nice man, i look forward to the email

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.