Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / August 2007



Tip: Looking for answers? Try searching our database.

Using MovieClipLoader Class to load swf

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
spamGactus - 29 Aug 2007 22:32 GMT
I'm trying to split a movie into smaller swf files. This is an existing movie
who's load time is long, so I'm trying to decrease load time by putting the
major parts of the movie in separate swfs, and loading them on demand.

Currently, the major pages of the site are contained in movie clips, which are
placed each in a frame in a MC called "pages". The pages are called by the main
timeline by accessing each frame in the pages MC. I'm trying to replace these
movie clips with blank movie clips, and load the individual swfs using this
code:

var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);

loader.loadClip("Soupes.swf", pageHolder_mc);

at each frame.

The fla can be downloaded from www.cjreynolds.com/fuda36.zip - go to the
Chinoise Cuisine page, then select Soupes at the left. This is the one that I
have tried to modify. It doesn't come up. In the fla, this is frame 8 of the
pages movieclip.
dzedward - 29 Aug 2007 23:23 GMT
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number,
bytesTotal:Number):Void{
trace("Bytes Loaded: "+bytesLoaded+"-------"+"Bytes Total: "+bytesTotal);
};
myListener.onLoadInit = function(target:MovieClip):Void{
trace("Load Complete, first frame executed");
}
mcLoader.addListener(myListener);
mcLoader.loadClip("Soupes.swf", pageHolder_mc);
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.