I have a very simple module:

<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute">
        <mx:Label x="272" y="269" text="Label" width="234" 
height="112"/>
</mx:Module>


Trying to load via ModuleManager using:

trace("Loading module");
var info:IModuleInfo = ModuleManager.getModule
("https://some_domain.com/ClockStandard.swf";);

info.addEventListener(ModuleEvent.READY,onLoadComplete);        
info.addEventListener(ModuleEvent.ERROR,onLoaderError); 
info.load();




private function onLoadComplete(event:ModuleEvent):void {
                trace("Completed and ready");
}
        
        
        
private function onLoaderError(event:ModuleEvent):void {
        trace("Problem " + event.errorText);
}


And yet I get an error every time of:


Problem SWF is not a loadable module
[SWF] /html/swf/timeClock/ClockStandard.swf - 254,974 bytes after 
decompression


Any idea whay ?

As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html



Reply via email to