i get problems @ this line… “contents.loadMovie(mc);”
instead of just loading the movie, it automatically plays. and the code after it don’t even get analyzed. pointers/suggestions are greatly appreciated. TIA
_root.createEmptyMovieClip(“contents”,1);
_root.preloader.stop();
_root.preloader._visible = false;
// contents = an empty movieclip on the stage (instance name contents of course)
moviesToShow_array = [“imod_page1.swf”, “imod_page2.swf”, “imod_page3.swf”, “imod_page4.swf”, “imod_page5.swf”, “imod_page6.swf”];
_global.num = moviesToShow_array.length;
showMovies = function (i) {
function loadMC(mc)
{
**contents.loadMovie(mc);**
this.onEnterFrame = function()
{
var loaded:Number = contents.getBytesLoaded();
var total:Number = contents.getBytesTotal();
var percent:Number = loaded/total;
_root.preloader._visible = true;
_root.preloader.loadBar._width = getPercent*100;
_root.preloader.loadText = "Loading "+Math.round(getPercent*100)+"%";
if (percent >= 1)
{
// the mc is now fully loaded
_root.preloader.stop();
_root.preloader._visible = false;
contents.play();
delete this.onEnterFrame;
}
}
}
loadMC(moviesToShow_array*);
if (i < (_global.num - 1)) {
this.onEnterFrame = function() {
if ( (contents._currentframe == contents._totalframes-1) && (contents._currentframe > 0) ) {
showMovies(i+1);
}
};
} else {
delete this.onEnterFrame;
}
};
showMovies(0);