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