FORUMS: list search recent posts

Can't Get Preloader to show Loading of Shared Library

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Can't Get Preloader to show Loading of Shared Library
on Feb 22, 2006 at 1:10:23 am

I have built a site with a master movie that loads the rest of the content on higher levels using the loadMovie class. As part of the initial load, I have a trigger.swf that initializes the loading of the sharedLib.swf (got this from tutorial). The preload movie works once the main.swf is loaded (the main content of the movie that is called on frame 10 of the master.swf - after the sharedLib.swf loads), but it doesn't show the progress bar ("preloader") during the initial load. Can't figure it out - worked fine in the tutorial...

Any help would be appreciated. Thanks.

Here's my code in frame one of master.swf timeline:



// Movie Clip Loader
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);

myListener.onLoadComplete = function(target_mc) {
_level50._visible = false;


myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved