Search code examples
flashactionscript-3flash-builder

AS3 Accessing methods in loaded swf


I'm loading an external AS3 SWF using the Loader class but i need to access a method inside the loaded SWF. how can i do this?


Solution

  • Try this:

    var _myVariable:* = loader.content;

    _myVariable.methodInLoadedSWF();