Somebody please help me, I’m going through one of those “put your foot through the monitor” days…
I created a swf file which loads several different swf files within itself, and everything has been a success so far, but…
I am trying to add preloaders for each of these swf files…So I have followed the instructions on so many different pages.
I am successful when I open up the files specificaly, but when I open them through the website itself, the preloaders do not work.
I know it’s all crazy and maybe doesn’t make much sense to you, but let me point out that in the swf file itself, it PRELOADS, but when you load the swf file through http://www.alanmerrill.com/root.html (and click “biography”) it does not preload, and there is something wrong.
Is this some kind of common problem? Is there some code I can add to a file to make this go away or is it just not possible to preload an swf being loaded within another swf.:hair:
the solution in my case was to adress the preloader towards the external loaded _level …
f.e. if u load the main movieclip to _level50 and u want to have the preloader inside this _level50 mc to externally load another mc to level 10… you have to refer to _level50 in the preloader otherwise it wont function!
here´s some code that show how it works:
onClipEvent (enterFrame) {
_level50.alles.loader1.loadBar._yscale = 0;
_level50.alles.loader1.loadBar.gotoAndPlay(2);
var total = _level10.getBytesTotal();
var loaded = _level10.getBytesLoaded();
percent = (loaded/total)*100;
_level50.alles.loader1.loadBar._yscale = percent;
percentDisplay=Math.round(percent);
alles=Math.round(total/1024);
moment=Math.round(loaded/1024);
if (loaded == total) {
_level10._visible=true;
_visible=false;
} else {
_level10._visible=false;
_visible=true;
}
}
Well I believe that is only if you are using loadMovieNum, which loads a movie to a level, but if you use loadMovie, which loads to a clip, it becomes _parent.