Hi guys, i need to load 2 Swf's in a row the primary & secundary
The two swf's allows to load the full movie any help?
i'm handling with some of this movie's
var my_Loader:Loader = new Loader();
var my_loadedSwf:MovieClip;
my_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading);
my_Loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
my_Loader.load(new URLRequest("movie2.swf"));
function finishLoading(loadEvent:Event) {
my_loadedSwf = loadEvent.currentTarget.content;
addChild(my_loadedSwf);
my_loadedSwf.testing();
}
function errorHandler(errorEvent:Event):void {
trace("file not found");
}
The two swf's allows to load the full movie any help?
i'm handling with some of this movie's
Quote:
var my_Loader:Loader = new Loader();
var my_loadedSwf:MovieClip;
my_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading);
my_Loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
my_Loader.load(new URLRequest("movie2.swf"));
function finishLoading(loadEvent:Event) {
my_loadedSwf = loadEvent.currentTarget.content;
addChild(my_loadedSwf);
my_loadedSwf.testing();
}
function errorHandler(errorEvent:Event):void {
trace("file not found");
}