PDA

View Full Version : Loadmovie won't load movie with preloader



Pjc4real
October 23rd, 2002, 01:15 PM
My flash site is created similar to that of the one in Kirupa's full flash site tut. When I click the home button, the

_root.contents.loadMovie("welcome.swf");

action loads in the welcome section (to a blank movieclip). However, "welcome.swf" consists of two scenes - the contents, and a preloader. It was working fine BEFORE I added the preloader scene. Now, all I get is a quick glimpse of my preloader animation (for "welcome.swf"), then my intial movie (navbar) starts over agin. What is wrong witht the code?

CODE USED FOR PRELOADER SCENE (IN "WELCOME.SWF"):

1ST FRAME:

total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
if (loaded>=total) {
_root.gotoAndPlay(32)
}

LAST FRAME:

gotoAndPlay(1);

pom
October 23rd, 2002, 05:29 PM
WHICH VERSION OF FLASH???

And it's normal, when you load a movie in a clip, the _root is no longer the _root...

pom :hat:

Pjc4real
October 23rd, 2002, 08:44 PM
MX....... What were u saying about _root???? :-\