Jump to content
Search Community

Need some starter for building timeline scrubber

alflasy test
Moderator Tag

Recommended Posts

Hi, I am very new here and planning to switch from Tweener to Tweenlight/Max.

My first project is with Timeline Lite and I want to build a scrubber. Jack from Greensock advised me that a scrubber can be built using currentTime property. I need some starter code to get started. It would be nice if someone can help me.

 

Thank you

Link to comment
Share on other sites

I simply put a Slider component on the stage and then after setting up my TimelineLite/Max instance,...

 

slider.minimum = 0;
slider.maximum = myTimeline.duration;
slider.liveDragging = true;
slider.addEventListener(SliderEvent.CHANGE, onChangeTime);

function onChangeTime(event:SliderEvent):void {
myTimeline.currentTime = event.value;
}

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