Background external images fadeIn and fadeOut
Hello,
I have a background with several external images that I want to fadeIn and fadeOut but so far I managed to swich images only randomly without fade. Can anyone help me to modify my code?
Code:
myImageArray = ["alfaBG1.jpg", "alfaBG2.jpg", "alfaBG3.jpg"];
_global.changeImage = function() {
myImage = myImageArray[random(myImageArray.length)];
photo.loadMovie("Background/" + myImage);
clearInterval(_root.changeImageIval);
_root.changeImageIval = setInterval(changeImage, ((random(10)+1) * 2000) );
}