myContainer.loadMovie("myExternalMovie.swf");
or
this._parent.loadMovie("home.swf")
}
//load into a container and resize the file.
//it doesn't work with levels.
stop();
// ActionScript 2.0
var mcl:MovieClipLoader = new MovieClipLoader();
// you first create a MovieClipLoader object
var picListener:Object = new Object();
// and a listener to control the loading...
mcl.addListener(picListener);
// connect the listener to the mcl...
mcl.loadClip("cwid.swf", empty_mc);
// parameter 1: file to be loaded
// parameter 2: the mc
picListener.onLoadInit = function(mc:MovieClip) {
/* mc here represents the movie clip in which we're
loading the content, and onLoadInit event handler
executes as soon as the file is loaded.
the important thing in here is that you need the
data be loaded totally before processing the mc.
*/
mc._width = 500;
mc._height = 355;
};
Popularity: 45% [?]
Leave a Reply