Return to Snippet

Revision: 48464
at July 2, 2011 00:00 by heathbo

Initial Code
function SourceMovie():void 
   var loader:Loader = new Loader();
   loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
   loader.load(new URLRequest('importedSwf.swf'));
function onLoadComplete(e:Event):void {
   var loaderInfo:LoaderInfo = as LoaderInfo;
   var swf:Object = loaderInfo.content;


// Runs function called changeText inside imported swf.
// To access variables, change "changeText()" to the variable name.

Initial URL

Initial Description
How to load an external swf.  Once its loaded, access it and use its functions and variables.

Initial Title
Load an external swf, use it and gain access to its functions and features.

Initial Tags

Initial Language
ActionScript 3