Jump to content
Search Community

slideshow does not repeat [SOLVED]

chefkeifer test
Moderator Tag

Recommended Posts

I have the following code and for some reason it does not repeat indefinitely or at all..just one cycle

 

any thoughts on why

var picScroll:TimelineMax = new TimelineMax({repeat:-1});
//-----------------------------------------------
img1.alpha = 0;
for(var i:int=1;i<23;i++){

 var img:DisplayObject = this["img" + i];
 img.alpha = 0;
 picScroll.append(TweenMax.to(img, 2, {alpha:1}),-.5);
 picScroll.append(TweenMax.to(img, 2, {alpha:0}),-.5);
}

Link to comment
Share on other sites

It's because your first tween is getting overwritten - why are you overlapping the alpha tweens of the same object? You're trying to have alpha tween to 0 and to 1 at the same time! Maybe you meant to sequence them with no overlap in which case you should remove the -0.5 offset parameter from the append() calls.

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