Jump to content
Search Community

Label placement

doyaydesign test
Moderator Tag

Recommended Posts

I was hoping to be able to append some tweenmaxs into a timeline and then append a lable, and then append tweenmaxs, append label. The problem is the times of the tweens can change so there's no easy way to place a lable by time.

 

I'll have 4 sets of tweens ( 2 in each set) and need to click a button that jumps to the beginning of that set. Love the sequencing.

 

Also, there isnt a problem appending a tween in a timelinemax inside a "if" statement is there?

 

Thanks, your software is great!

Link to comment
Share on other sites

I was hoping to be able to append some tweenmaxs into a timeline and then append a lable, and then append tweenmaxs, append label. The problem is the times of the tweens can change so there's no easy way to place a lable by time.

 

Sure, you can just use the "duration" property as the insertion point for your label, like this:

 

myTimeline.append( new TweenMax(mc, 1, {x:100}) );
myTimeline.append( new TweenMax(mc, 1, {y:100}) );
myTimeline.addLabel("myLabel", myTimeline.duration);
//..and so on...

 

Also, there isn't a problem appending a tween in a timelinemax inside a "if" statement is there?

 

Absolutely not. append() anytime, as often as you like :) You weren't running into trouble, were you?

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...