[Flash 8] Could someone help with External content + masks?

Hi all, first post so I hope it’s not a doozy!
I have a flash script that’s been given to me. As far as I can see it crudely preloads external images, populates an array and fades between each image.

Images are passed in as such,

image1.jpg|2000

The former is the filename and the latter is the number of milliseconds the image stays on show for.

However I need to add a mask ontop of this file so that any images that are brought in appear underneath this mask. I’ve tried using .setMask but to no avail. Any ideas guys?

The code is written in Flash 8 and there aren’t any objects in the library.

I apologise for the code :beam:


stop(); 
_root.createEmptyMovieClip("pload",1); 
_root.createEmptyMovieClip("pload2",2); 
//************************************** 
//Preloader 
//************************************** 
preload= new MovieClipLoader(); 
//************************************** 
//Load XML File 
//************************************** 
var fadeDelay = 2000;
var getVars = "images/old/1.jpg|2000,images/old/2.jpg|2000,images/old/3.jpg|2000,images/old/4.jpg|2000,images/old/5.jpg|2000,images/old/6.jpg|2000";
//var getVars = _root.imageList;
getVars = getVars.split(",");
trace(getVars.length);
for (var i = 0; i < listFiles.length; i++){
 thisItem = listFiles*;
 thisItem = thisItem.split("|");
 _root.createEmptyMovieClip(eval("loader"+i),i+20); 
 eval("loader"+i)._x=500; 
 eval("loader"+i)._y=500; 
 eval("loader"+i).loadMovie(thisItem[0]); 
}
load_home(0);
//************************************** 
//Function Definitions 
//************************************** 
function load_home(num){ 
if(delay){ 
clearInterval(delay); 
} 
pload.swapDepths(pload2); 
var j=num; 
pload._x=0; 
pload._y=0; 
thisItem = getVars[j];
thisItem = thisItem.split("|");
pload.loadMovie(thisItem[0]); 
fadeIn(pload); 
var j=j+1; 
if(j >= getVars.length){
var j = 0;
}
 
delay2=setInterval(load_home2,thisItem[1],j); 
} 
function load_home2(num){ 
clearInterval(delay2); 
pload.swapDepths(pload2); 
fadeOut(pload); 
var k=num; 
pload2._x=0; 
pload2._y=0; 
thisItem = getVars[k];
thisItem = thisItem.split("|");
pload2.loadMovie(thisItem[0]); 
fadeIn(pload2); 
var k=k+1; 
if(k >= getVars.length){
var k = 0;
}
delay=setInterval(load_home,thisItem[1],k); 
} 
function fadeIn(movie){ 
movie._alpha=0; 
_root.onEnterFrame=function(){ 
movie._alpha+=5; 
if(movie._alpha>99){ 
movie._alpha=100; 
delete _root.onEnterFrame; 
} 
} 
} 
function fadeOut(movie){ 
movie._alpha=100; 
_root.onEnterFrame=function(){ 
movie._alpha-=1; 
if(movie._alpha<2){ 
movie._alpha=0; 
delete _root.onEnterFrame; 
} 
} 
}