Revision: 48464
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
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 = e.target as LoaderInfo; addChild(e.target.content); var swf:Object = loaderInfo.content; swf.changeText(); } SourceMovie(); // 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