Hi,
I’m hoping someone will help me. I have a slide presentation with audio tracks and I need to load the new slides in while the previous ones are playing to get rid of any preloaders during a change of slide. The project consists of one main navigation movie and 30 slide files all with extensive audio. The trace commands are just there because I had a hard time getting it to work.
Here’s the code I came up with after searching the forums-i created a blank movie clip with an instance name of container and am loading additional empty clips into it-
Code:
onClipEvent (load) {
i = 1;
r = 0;
}
onClipEvent (enterFrame) {
if (i < 31) {
_root.container.createEmptyMovieClip("container" + i, i);
clip = eval("container" + i);
if (r == 0) {
_root.container.clip.loadMovie("slide" + i + ".swf");
slide = "slide" + i + ".swf";
trace(slide);
if (_root.container.clip.getBytesLoaded()==_root.container.clip.getBytesTotal()) {
trace(_root.container.clip.getBytesLoaded());
trace(_root.container.clip.getBytesTotal());
r = 0;
i += 1;
_root.container.clip.unloadMovie();
} else {
r = 1;
}
}
}
}
I’m pretty sure the problem lies in the getBytesLoades<getBytesTotal if then statement as the trace commands evaluate them both as 0-Can someone please help?
Thanks,
Yvette