Flash on cd, calling external swfs, preloading?

hi, i’ve created a project that i’m putting on cd-rom. this project calls some externals swf files. everything was working lovely until i tried it from the cd. all the called swf files are running way slow and it’s just a mess.

so i’m trying to figure out preloading to see if that will help. i used some script i found in a thread by Scotty, and looks like the external swfs preloaded okay. and i put a stop() on the first frame of each of the external swfs so they will not play immediately. but now i’m trying to call the swfs when i need them by using a gotoAndPlay(frame) and don’t know what i’m doing wrong. i need to have these swfs not play on preload but when i call them, either by EnterFrame or onPress.


 
 
stop();
movieArray = new Array("clientsatprinciple.swf", "ccmvie.swf");
var j = 0;
var loadTot = 0;
function preload() {
var mvieH = this.createEmptyMovieClip("container"+j, 999+j);
mvieH.loadMovie(movieArray[j]);
var temp = this.createEmptyMovieClip("tmp"+j, j);
temp.onEnterFrame = function() {
var t = mvieH.getBytesTotal();
var l = mvieH.getBytesLoaded();
var loaded = Math.round((l/t)*100)/movieArray.length;
bar._xscale = loadTot+loaded;
info.text = "loading movie...";
//or
//info.text = loadTot+loaded+" percent loaded"
if (t == l && t>1) {
//mvieH._visible=0;
loadTot += loaded;
j++;
nextMovie();
delete this.onEnterFrame;
}
};
}
function nextMovie() {
j<movieArray.length ? preload() : (info.text="", bar._visible=0);
}
preload();
 

and then on a later frame i currently have:


onEnterFrame = function() {
_root.container1.gotoAndPlay(3);
}

… tried _root, and without and “this” and… what am i doing wrong?

as an aside to this, some of the forums i’ve been reading say it’s just bad to try doing all this with flash on a cd, that i should try rolling it into director. yowza, haven’t touched director in a few years… any thoughts on that??

any help/pointers much appreciated, as i’m frustrated to tears at this point…