Jump to content

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

TweenMax default on TimelineMax when added via .to/.from

Recommended Posts

How can I force each segment of TimelineMax to be TweenMax instead of TweenLite as it seems it is happening now.


I have:

var tl:TimelineMax = new TimelineMax();
tl.to(mc, 1, {x:100});

if I check this with 

trace ( tl.getActive(false,true,false)[0]; )

 I will get TimelineLite.



do I have to do tl.add ( TweenMax.... ) or there is a way to make TweenMax to be default for each addition to TimelineMax if lined with .to, .from, .fromTo ... ?

Link to comment
Share on other sites

You meant to say TweenLite, not TimelineLite, right? 


Yeah, in order to optimize performance and minimize memory usage, the convenience methods default to using TweenLite UNLESS you define a "repeat" special property AND you have TweenMax loaded (because that's the only case that it's particularly useful). Otherwise, yes, if you want to force it to be a TweenMax, you can just use the add() method and pass in the TweenMax instance. 


Do you mind me asking why you want the convenience methods to use TweenMax? 

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.