Jump to content
Search Community

do something in the middle of a timelineMax

booglebop test
Moderator Tag

Recommended Posts

Let's say I have everything set up as a timelineMax. Is it possible to call a function in the middle of the timelineMax sequence without stopping it? For example, if in the middle of my timelineMax sequence I need to insert a frame by frame animation for one of the objects on the stage. Is there a way to basically call a separate function from somewhere in the middle of the timelineMax sequence without stopping it? I hope this makes sense. I'm very new to actionscript. Thanks!

Link to comment
Share on other sites

Let's say I have everything set up as a timelineMax. Is it possible to call a function in the middle of the timelineMax sequence without stopping it? For example, if in the middle of my timelineMax sequence I need to insert a frame by frame animation for one of the objects on the stage. Is there a way to basically call a separate function from somewhere in the middle of the timelineMax sequence without stopping it? I hope this makes sense. I'm very new to actionscript. Thanks!

 

Sure! That's what the addCallback() method is for in TimelineMax. For example, to call myFunction at exactly 3-seconds into a TimelineMax, do:

 

timeline.addCallback(myFunction, 3);

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