-
FlashMX2004 AS[2] Operator "else if"
The code works fine until it reaches the "else if" condition. It will not recognize the !== operator?
How do I get the "else if" code to unload all movies that is not an array element in the arrpopup array?
arrpopup= new Array (2,8); //match && to varray
varray = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13);
//popups
function fpopup(){
vtofile2 = "contents/popup";
ext = ".swf";
//loop conD search
for(i=0; i<=arrpopup.length; i++)
if(step ==arrpopup[i]){
//CONCAT
vpath2 = (vtofile2+step+ext);//concat
//LOAD& CAT
loadMovie(vpath2, "_level200");
}else if(step !==arrpopup[i] ){
_root.funload();
}
}
//unload mc's
function funload(){
unloadMovie("_level200");//popups
}
thanks
iaustin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|