Well, you don’t have to worry about levels, just on your preloader of your loaded movie, have a few layers, where your background layers are of the doors. And your preloader layers are above those.
ollihimself :: you want the doors to close, and make the external swf load behind the door right, and when it is loaded the dorrs open again right??
LostinBeta :: I dnt think he can have the preloader at the beginning of the external swf coz those doors need to be in the main movie.
If the dorrs where in the external swf, then you will have to wait for the doors to appear first (loaded), and to avoid that i think u need to thave it on the main movie, hope you get what i mean!!
ok u have visited my page… all works fine now, because i do preload the external loaded swf from the main movie (wehre the doors are included)…
to do so i use the following script:
onClipEvent (enterFrame) {
var total = _level10.getBytesTotal();
var loaded = _level10.getBytesLoaded();
percent = (loaded/total)*100;
percentDisplay=Math.round(percent)+"%";
alles=Math.round(total/1024)+" KB gesamt";
if (loaded == total) {
_level10._visible=true;
_visible=false;
} else {
_level10._visible=false;
_visible=true;
}
}
ok what does the script?!?
very easy:
If the frame is reached, where the code is embedded it sets 2 variables:
total and loaded… Both refer to level 10 (where my external swf will be loaded into) and give back the total amount of bytes of this swf and the loaded amount of bytes of level10.
After that i have to define what percent is: percent is (loaded/total) *100…
After that i have to tell what should be shown in the 2 dynamic text fields that must be named “percentDisplay” and “alles”…
the if statement is just to display the preloaded content if all bytes are completley loaded…
ok i attach a small fla here so that you can try out… you just have to modify the name of the external loaded swf and the level u want to load it in…
hope that will help… otherwise ask and i will try to help u…