var depth = 0;
holder_mc = _root.createEmptyMovieClip("holder_mc", depth++);
mc_1 = holder_mc.createEmptyMovieClip("mc_1", depth++);
mc_2 = holder_mc.createEmptyMovieClip("mc_2", depth++);
holder_mc._x = 10;
holder_mc._y = 10;
var loadCount = 1;
swapNumber = function(){
switch (loadCount) {
case 1:
loadCount++;
return loadCount;
break;
case 2:
loadCount--;
return loadCount;
break;
default:
return loadCount;
}
};
swapClips = function(){
var show_num = "mc_"+swapNumber();
var hide_num = "mc_"+swapNumber();
show_num._visible = true;
hide_num._visible = false;
};
loadFile = function(filename){
swapClips();
//load file into shown clip
//preload next file into hidden clip
};
loadFile("file.swf");
Yeah, I can’t workout how to make them swapVis basically. Any more efficient means/methods would be welcomed.
I feel like my code is getting too straight up and down and not looking out to make it shorter etc.