dada78 Posted November 5, 2013 Share Posted November 5, 2013 Hi, I have been struggeling figuring out a simple slideshow using next and previous buttons. Currently I have a slideShow container with 4 movieclips arrranged next to one another. Essentially what I would like is have the slideshow cycle through the 4 slides in the slideshow container and have a next and previous button executable at anytime, but I have no idea on how to accomplish this. This is what I have at the moment: import com.greensock.*; import com.greensock.easing.*; var timeline:TimelineLite = new TimelineLite(); timeline.append( new TweenLite(slideShow, 0.5, {x:"0"}) ); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-280"})); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-260"})); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-260"})); Any help is highly appreciated! Thanks, Dada Link to comment Share on other sites More sharing options...
Carl Posted November 6, 2013 Share Posted November 6, 2013 I would suggest inserting each tween at a label and using TimelineMax geLabelAfter() and getLabelBefore() methods to aid in the navigation. Also look into TimelineMax's tweenTo() method that will allow you tween to any label. There is quite a bit of logic you will need to work out to build a self-playing timeline with pauses and dynamic navigation. Not sure how much you need help with. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now