# Fading attached images from array

**URL:** <https://forum.kirupa.com/t/fading-attached-images-from-array/268016>\
**Category:** Uncategorized\
**Created:** [August 8, 2008, 8:10am UTC](https://forum.kirupa.com/t/fading-attached-images-from-array/268016 "2008-08-08T08:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [August 8, 2008, 8:10am UTC](https://forum.kirupa.com/t/fading-attached-images-from-array/268016/1 "2008-08-08T08:10:30Z")

</div>

hi guys, I’m working on a little slideshow that loads images on an interval. The images load on the stage fine. But there are no transitions. I want it so it fades. But at the moment they just go on the stage. Any ideas?

here is me code:

```auto

var intervalId:Number;
var count:Number = -1;
var maxCount:Number = 12;
var duration:Number = 1500;
var myArray:Array = new Array("img0", "img1", "img2", "img3", "img4", "img5", "img6", "img7", "img8", "img9", "img10", "img11", "img12");

function image()
{
	
	count++
	trace(myArray[count]);
	
	this.attachMovie(myArray[count], myArray[count], getNextHighestDepth() ,{_x:0, _y:0});
	myArray[count]._alpha = 0;
	
	if (myArray[count]._alpha<100) {
		myArray[count]._alpha += 10;
		}
	
	if(count == 12)
	{
		count = -1;
		// myArray[count].unloadMovie(this);
	}
	
}

intervalId = setInterval(this, "image", duration, myArray[count]);

```

Cheers
