Jump to content
GreenSock

jwiley

How to clear a Timeline

Recommended Posts

I need to remove series of captions I have put on a timeline to replace them with the same captions with a different language pointer.

 

.kill() ?

.remove()??

Thanks,Jim

 

Link to comment
Share on other sites

Well, you can't really put "captions" in a timeline - do you mean tweens of captions maybe? Or labels? 

 

You can either kill() the tween(s) (which automatically removes them from the timeline) or you can remove() them from the timeline yourself or if you want to dump everything from the timeline, you can clear(). If you haven't checked out the docs, they're really helpful for stuff like this because every property and method is listed with a description for each (and sometimes even a code sample):

Link to comment
Share on other sites

Thanks Jack.

I need to clear both the tweens and objects (captions).

The clear() was what I was after.

I have a Array that the objects were kept in. I'll cycle through that to remove them before I clear that too.

Love this suite.

Cheers

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