PDA

View Full Version : I cant seem to get loadmovieNum to work for my flash website


monkeymike
08-08-2005, 08:01 PM
Sorry im new to actionscript.org sorry if ived posted in the wrong forum
I have used it before but i cut corners, without putting it inside a movieclip, but now i have it freezes on the preloader. I think this is because the preloader is set the root_ thingy to the main movie so it shows it is already loaded or something. So do i need to edit each preloader of every separate .swf file to include the following edited code
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}

Do i need to change the _root.getbytesLoaded and the _root.loadBar and load text things to the file name of the other swf files or something else. Sorry i am just getting into actionscript so if i aint explained it clearly dont worry about it.
Thanks in advance :)

Ricod
08-08-2005, 09:48 PM
Actually, loadMovieNum loads a movie into another _level. _root (here) refers to _level0.

Also, I suggest you do a bit of searching. There are many threads on prelloaders.

oldnewbie
08-09-2005, 03:20 AM
Change all references to _root to this...