That has taken a fair bit of Googling to figure that one out. Because of security sandbox restrictions, when using the url of the ModuleLoader component, modules can only be loaded from the application directory (or any of its subdirectories).
Solution adapted from Enable Local App to load RunTime CSS.swf from Server
That has taken a fair bit of Googling to figure that one out. Because of security sandbox restrictions, when using the url of the ModuleLoader component, modules can only be loaded from the application directory (or any of its subdirectories).
Solution adapted from Enable Local App to load RunTime CSS.swf from Server
{syntaxhighlighter brush: as3}
private function loadModule():void
{
var file:File = File.userDirectory.resolvePath("test/MyModule.swf");
