Return to Snippet

Revision: 47928
at June 18, 2011 08:17 by russdogg


Initial Code
import flash.events.Event;
import flash.display.Loader;
import flash.net.URLRequest;

var swfLoader:Loader = new Loader();

holderMC.addChild(swfLoader);

var bgURL:URLRequest = new URLRequest("loadSWF_File.swf");

swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);

swfLoader.load(bgURL);

function loadProdComplete(e:Event):void 
{

    trace(“file loaded”);

}

Initial URL

                                

Initial Description

                                

Initial Title
Load External SWF

Initial Tags
load

Initial Language
ActionScript 3