# Seamless flash loop

**URL:** https://forum.kirupa.com/t/seamless-flash-loop/286043
**Category:** Uncategorized
**Created:** [April 9, 2009, 6:55am UTC](https://forum.kirupa.com/t/seamless-flash-loop/286043 "2009-04-09T06:55:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![carbone6](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@carbone6](https://forum.kirupa.com/u/carbone6)
#### Post date: [April 9, 2009, 6:55am UTC](https://forum.kirupa.com/t/seamless-flash-loop/286043/1 "2009-04-09T06:55:00Z")

</div>

Hi,  
i’m trying to created a seamless loop of fading images using actionscript. With the AS i’m using it fades out the last image then fades in the first image again so there is a gap between the last and the first image.  
I’d like the last image to fade into the first image seamlessly without a gap.  
I’m using tweenlite but would take suggestions of other options  
Below is my code:

import gs.TweenLite;

```
	function startShow():Void {		
	
	image1._alpha = 0; // start faded down
	TweenLite.to(image1, 1, {_alpha:100});
	TweenLite.to(image1, 1, {_alpha:0, delay:3, overwrite:false});
	
	image2._alpha = 0; // start faded down
	TweenLite.to(image2, 1, {_alpha:100, delay:3, overwrite:false});
	TweenLite.to(image2, 1, {_alpha:0, delay:6, overwrite:false});
	
	image3._alpha = 0; // start faded down
	TweenLite.to(image3, 1, {_alpha:100, delay:6, overwrite:false });
	TweenLite.to(image3, 1, {_alpha:0, delay:9, overwrite:false});

	
	image4._alpha = 0; // start faded down
	TweenLite.to(image4, 1, {_alpha:100, delay:9, overwrite:false});
	TweenLite.to(image4, 1, {_alpha:0, delay:12, overwrite:false});

	image5._alpha = 0; // start faded down
	TweenLite.to(image5, 1, {_alpha:100, delay:12, overwrite:false});		
	TweenLite.to(image5, 1, {_alpha:0, delay:15, overwrite:false, onComplete:startShow, onCompleteScope:this});

```

}

startShow();
