[flexcoders] Re: Can not load Module using ModuleManager ...

2007-03-15 Thread tvikatos
Well, the error msg you are getting does not point to crossdomain 
security issues. It does suggest though that the swf you are trying 
to load is not a Flex 2 component based on mx:Module
Is that the case?

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 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





[flexcoders] Re: Can not load Module using ModuleManager ...

2007-03-15 Thread helihobby
Well you were both right.

It was a crossdomain.xml issue and the error does not reflect that.

I think this is a low level bug as the SWF error is wrong and does 
not pertain to anything about a sec domain issue.

However, this was a security issue.

Thank you for all the help,

Sean - HeliHobby.com

--- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote:

 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