flash as crossfade help
Out of context: Reply #7
- Started
- Last post
- 28 Responses
- unfittoprint0
//this example uses external images for a 'lighter' file
create an array 'images' with name/paths of the slideshow images.
create a number var named 'count'.
count values will change between 1 or 2.
create a number var named 'imgcount'.
imgcount values will refer to your images array index.
create the 2 holders, img1 & img2, and make their initial _alpha == 0;
make a refresh function to update the count / imgcount value and to start loading the image into the targetmc.
make a fade function + interval that takes an mc/alpha value as parameters
make a loadcheck loop interval to see if the target movie [img1 && img2] are finished loading the external img.
if finished, trigger the transition function[s]:
if(count == 1) ? fade(img1, 100) : fade(img1, 0);
if(count == 1) ? fade(img2, 0) : fade(img1, 100);
//the end