Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
creatify

Tweening a Generic Object

Recommended Posts

Are there any downsides (minus data typing) to tweening a generic Object that is a property of some Class vs. creating a specific Class (extending Object) and tweening on that?

 

For example, this is the Class property (foo) that I'm using the Tween on to tween all of foo's properties — I'm curious if this has any downsides from a GC standpoint:

 

public var foo:Object = {a:1, b:2, c:3, d:4, e:5, f:6, g:7, h:8};

 

thanks!

Link to post
Share on other sites

Besides the obvious performance trade offs of tweening generic objects, I don't see any major issues at all. Sometimes it can be quite handy. It wouldn't be my first choice in most situations though.

Link to post
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.

×