PDA

View Full Version : _level + preloader problems :(


DeadCell
01-08-2003, 11:39 PM
ok, this is it:

onClipEvent (load) {
if (_root.logo_loader.initialized) {
// load up our sounds
loadMovieNum("sounds.swf", 2);
// they are not fully loaded yet
initialized = false;
// count the frame for loader clip
count = 0;
}
}
onClipEvent (enterFrame) {
if (_root.logo_loader.initialized) {
percentloaded = Math.floor(_level2.getBytesLoaded()/_level2.getBytesTotal()*100);
percent_display = percentloaded+"%";
if (percentloaded == 100 && !initialized) {
if (count<15) {
this.gotoAndStop(count);
count++;
} else {
this.gotoAndStop(15);
_root.continue_button._visible = true;
}
}
}
}

wont work, but if i do it with _level1 it does, but i already loaded something onto level 1 so i need it to be loaded on level 2... anyone have any idea of why it wont work?

farafiro
01-09-2003, 09:02 AM
does the logo_loader stays in the _root of the MAIN that u load your swf in
or it's in the loaded swf?? if it is, you should use _parent or the absolute path

DeadCell
01-09-2003, 04:45 PM
oh yeh, the actionscript above is on a movie clip in the main movie... like i said, it works if i load the swf if i load it into level1, but no other levels :S

farafiro
01-12-2003, 07:14 AM
and as I said too:
if you load swf into another swf and the loaded one has a MC in it with an action refering to the _root, the _root here is actualy refering to the holder (loaded in) swf, this should be replaced with _level

DeadCell
01-13-2003, 03:44 PM
the action script is in the main swf not the loaded one, there is no actionscript in the swf that is being loaded.