Jump to content
Search Community

TimelineMax TweenMax allTo tweenTo

maximaexchen test
Moderator Tag

Recommended Posts

Hey there.

 

I don't get it....

I have a sequenze of some objects including one array with some extra objects in a Timeline.

 

Some how the onCompleteAll event of the array-Tween isn't fired correctly.

I want that all items in the array are tweened to the end at a specific Label before the timeline is paused.

Where is my mistake/missunderstanding?

 

 

I created a quick example file to demonstrate my problem.

 

Regards

Link to comment
Share on other sites

New Problem now.

 

I added:

 


function gotoLabel(n:int):void { 
trace("\nGO TO LABEL" + n);
timeline.tweenTo(n, {onComplete:resume}); 
}

function resume():void
{
timeline.resume();
}

 

Now the tweens from one label to another are "skipped".

 

Maybe someone could give me a hint to accomplish the correct tweening.

Link to comment
Share on other sites

can you upload the recent version of your fla?

 

the first one you posted isn't really working, and I don't know what you did between then and now.

 

what i can see as a likely candidate for trouble is that you are making labels strings like "0", "1", "2"...

 

but your gotoLabel function is asking for an integer, which tweenTo would see as a time such as 1 second 2 seconds.

 

I would suggest that if you want to sequentially label your strings, use "label1", "label2" etc. keep them all obvious strings.

 

and then use:

 

function gotoLabel(n:int):void { 
  trace("\nGO TO LABEL" + n);
  timeline.tweenTo("label" + n, {onComplete:resume}); 
}

 

or just convert n to a string.

Link to comment
Share on other sites

Hey Carl,

 

thank you very much for your advice!!!

 

In the meantime I watched your tutorial "Bullet-Proof TimelineMax Transitions", and I think I've a deeper insight now how to accomplish animation with TimelineMax.

I will try to put the new Input in my animation-project.

 

Maybe I come back later if I am stuck anywhere else.

 

Thanks and kind regards

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