summoning unfit...
Out of context: Reply #3
- Started
- Last post
- 13 Responses
- unfittoprint0
well, I'll not write the entire code, but the necessary stuff to accomplish it.
//an array to save jpg's location/number
images = new Array ("image1.jpg", "image2.jpg", etc...)//create 2 holders for the images
this.createEmptyMovieClip("image... 3);
this.createEmptyMovieClip("image... 4);//an alpha function
changeAlpha = function(targetA){
movieA=image1._alpha
movieA += (targetA-movieA)/2
image1._alpha=movieA
image2._alpha=100-image1._alpha;
}//the loop
fade = function(targetA){
clearInterval(alphaLoop)
alphaLoop = setInterval(this, "changeAlpha", 30, targetA);There's more code into it. You should use the follwoing: A count variable with only two values [1 or 2]. After loading image1 change count to 2, make an interval function with a 10 second delay to load the next image into the specific holder [image2 MC], use the fade [either fade(0) or fade(100) depending on the count variable], then change count again to 1. Increase the variable imageNumber to load the desired image from the array, increasing it like ++imageNumber until it == images.length-1. Then equal it to zero to start over.