PDA

View Full Version : Loading Movies ito Movieclips.


nathanleyton
04-09-2003, 06:49 PM
I have a web site where I do the above.. I have pre loaders on each movie.. Now this used to work fine.. UNtil I upgraded the preloaders to ones that getbytes and so on. If I run the swf on there own the pre loaders work just dandy... But when I load them from within my main movie they dont work..

They goto 100% straingt away then wait until it has loaded.. Im sure this is a simple error but I cannot figure it out.. If anyone would help me.. I would appriciate their time..

Thanks
Nathan

farafiro
04-10-2003, 08:33 AM
nathanleyton
welcome to the forums
can we see the code??

nathanleyton
04-10-2003, 01:49 PM
Thanks for your help

Yes in the main movie I have buttons with these commands on them :
on (release) {
loadMovie("merchandise.swf", "_root.loader");
}

Then on each swf i.e. merchandise.swf I have this.

scene 1: frame 1:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("News", 9) {
gotoAndPlay("News", "start");
}

scene 1: frame 2:
gotoAndPlay("preloader", "MainPreLoader");

When I run merchandise.swf on its own the preloader works fine..

When I load it into a movie clip on my main movie it fails do you have any idea why.. any help appriciated...

Thanks again for your reply..

Nathan

farafiro
04-10-2003, 02:05 PM
so u r using scenes name and frames lable, don't use scenes name or numbers, the lable is enough

also, the fFrameLoaded, only needs a number or a lable

nathanleyton
04-10-2003, 02:11 PM
I have tried this in all different ways.. Including just frame labels and still when loaded into the movieclip in the main movie it goes too 100% straigt away and waits there until loaded then enters the second scene..

Thanks again for replying.

nathanleyton
04-10-2003, 02:13 PM
can see for your self go here (http://www.duneonline.com)

Each swf the preloader works fine. when run externally from the main movie.