Jump to content
Search Community

feature request... TimelineLite.appendLabel()

unpaidintern test
Moderator Tag

Recommended Posts

i may be missing it, but the only mode of adding labels i've found requires a time value... but i'd really like to append it just as i would an additional tween. for instance...

 

tl.append( new TweenLite( target, 0.5, { vars } ) );

tl.appendLabel( "myLabel" ); // instead of tl.myLabel( "over", 0.5 );

tl.append( new TweenLite( target, 0.5, { vars } ) );

 

the reason being, anytime i want to add a label in a complicated timeline sequence, i have to do a trace( tl.currentTime ) in order to figure out the time value... whereas if i could append the label, perhaps with the same offset option as append(), i'd save a lot of time and i wouldn't have to change the value every time i altered the portion of the timeline that preceded the label.

 

or am i missing something?

 

thanks

Link to comment
Share on other sites

instead of tracing currentTime to track the insertion point use the timeline's duration with addLabel()

 

tl.append( new TweenLite( target, 0.5, { vars } ) );

tl.addLabel("home", tl.duration)

tl.append( new TweenLite( target, 0.5, { vars } ) );

tl.addLabel("about", tl.duration)

 

this gives you a nice dynamic approach.

 

grab some source files from here to see it in action:

http://www.snorkl.tv/2011/01/navigate-a ... d-tweento/

 

your suggestion for a an appendLabel("label") that automatically does the above sounds cool to me.

 

Carl

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.
×
×
  • Create New...