If you're loading from a different domain you need crossdomain.xml and I
think you may need to specify the securitydomain as well.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Wednesday, March 14, 2007 6:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can not load Module using ModuleManager ...
I have a very simple module:
?xml version=1.0 encoding=utf-8?
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml
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
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 http://www.HeliHobby.com
P.S.
You can read my solution for Flex Component communication here:
http://www.helihobby.com/html/alon_desingpattern.html
http://www.helihobby.com/html/alon_desingpattern.html