Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
Thanks Alex, that's extremely helpful. I don't doubt that you're correct, but could you tell me where that's documented? I don't see it in any of the API docs for the mx.modules classes, and the word module doesn't appear anywhere in the Flash Player 9 Security Whitepaper PDF. The same app is easily able to load and interact with Flash movies using SWFLoader from the same server, and without a crossdomain.xml file (which isn't accessed even when it exists) so none of this makes sense to me. --- Alex Harui [EMAIL PROTECTED] wrote: Local swfs cannot load remote modules. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Glasser Sent: Wednesday, January 30, 2008 8:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF is not a loadable module / crossdomain.xml woes I'm running a Flex app in my local Flash player (not in a browser) from my local disk, and I'm trying to load a module from a Tomcat server running on localhost. My Flex app is trusted and is already communicating with that server for other things, but when I try to load the module, I get the error described by Alex Harui in this blog post: http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html I've put the following crossdomain.xml file in the root document directory of the Tomcat server: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from domain=* / /cross-domain-policy and I still get the error. I can load the crossdomain.xml file in a browser with the URL http://localhost/crossdomain.xml. http://localhost/crossdomain.xml. The weird thing is that the Tomcat access logs do not indicate that the Flash player running my Flex app is requesting that crossdomain.xml file at all. Does anyone have any idea what I'm doing wrong?
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
hi, ok... may be the problem is not with crossdomain.xml,... can uu please post the error u r getting ?. and try to post the code so that it may helpful to find out the bug. thank u shrikant Dave Glasser-2 wrote: That didn't work either. As I mentioned, the crossdomain.xml file isn't even being requested by the Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15204432.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
That didn't work either. As I mentioned, the crossdomain.xml file isn't even being requested by the Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
The code looks like: var moduleInfo:IModuleInfo = ModuleManager.getModule(_url); moduleInfo.addEventListener(ModuleEvent.READY, onModuleLoaded); moduleInfo.addEventListener(ModuleEvent.ERROR, onModuleError); moduleInfo.load(); And the onModuleError event handler gets called. The ModuleEvent's errorText property is SWF is not a loadable module. --- shrikant.patil [EMAIL PROTECTED] wrote: hi, ok... may be the problem is not with crossdomain.xml,... can u please post the error u r getting ?. and try to post the code so that it may helpful to find out the bug. thank u shrikant Dave Glasser-2 wrote: That didn't work either. As I mentioned, the crossdomain.xml file isn't even being requested by the Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15204432.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
Believe me, I tried every possible thing I could think of before I posted to this list. The logs on the server indicate that the module is in fact being served, and it all works when the original SWF file is loaded from the server, in the browser, instead of the local disk with the standalone Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi, check for the value (should b string) of variable _url (try to put breakpoint in degugger, and check with variables panel, u wil get what actually the variable hold the value)... i think here the problem is with the variable _url... so please test it and let me know the value of _url variable at runtime... or test with the static name like Dave Glasser-2 wrote: The code looks like: var moduleInfo:IModuleInfo = ModuleManager.getModule(your module name.swf); moduleInfo.addEventListener(ModuleEvent.READY, onModuleLoaded); moduleInfo.addEventListener(ModuleEvent.ERROR, onModuleError); moduleInfo.load(); check with the above , let me know regards shrikant var moduleInfo:IModuleInfo = ModuleManager.getModule(_url); moduleInfo.addEventListener(ModuleEvent.READY, onModuleLoaded); moduleInfo.addEventListener(ModuleEvent.ERROR, onModuleError); moduleInfo.load(); And the onModuleError event handler gets called. The ModuleEvent's errorText property is SWF is not a loadable module. --- shrikant.patil [EMAIL PROTECTED] wrote: hi, ok... may be the problem is not with crossdomain.xml,... can u please post the error u r getting ?. and try to post the code so that it may helpful to find out the bug. thank u shrikant Dave Glasser-2 wrote: That didn't work either. As I mentioned, the crossdomain.xml file isn't even being requested by the Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15204432.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15205254.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
hi, check for the value (should b string) of variable _url (try to put breakpoint in degugger, and check with variables panel, u wil get what actually the variable hold the value)... i think here the problem is with the variable _url... so please test it and let me know the value of _url variable at runtime... or test with the static name like Dave Glasser-2 wrote: The code looks like: var moduleInfo:IModuleInfo = ModuleManager.getModule(your module name.swf); moduleInfo.addEventListener(ModuleEvent.READY, onModuleLoaded); moduleInfo.addEventListener(ModuleEvent.ERROR, onModuleError); moduleInfo.load(); check with the above , let me know regards shrikant var moduleInfo:IModuleInfo = ModuleManager.getModule(_url); moduleInfo.addEventListener(ModuleEvent.READY, onModuleLoaded); moduleInfo.addEventListener(ModuleEvent.ERROR, onModuleError); moduleInfo.load(); And the onModuleError event handler gets called. The ModuleEvent's errorText property is SWF is not a loadable module. --- shrikant.patil [EMAIL PROTECTED] wrote: hi, ok... may be the problem is not with crossdomain.xml,... can u please post the error u r getting ?. and try to post the code so that it may helpful to find out the bug. thank u shrikant Dave Glasser-2 wrote: That didn't work either. As I mentioned, the crossdomain.xml file isn't even being requested by the Flash player. --- shrikant.patil [EMAIL PROTECTED] wrote: hi try to put the below crossdomain.xml u r missing something there; ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* secure=false/ /cross-domain-policy As per mine knowladge.. u need to put secure tag as false, so that i will allow it to access any of secure issues. hope this may solve; cheers -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15199689.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15204432.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15205254.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
hi, cool here i m sendung u a link of flex documentation : http://livedocs.adobe.com/labs/flex3/html/help.html?content=modular_5.html on this page there is a topic titled with : Loading modules from different servers check the security, and methods which need to take at initial stage loading a module. hope it may help regards shrikant -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15205661.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
Thanks, shrikant. I already tried all of the various Security.allowDomain calls, in both the accessing and the accessed module, and it still doesn't work. I believe Alex Harui's answer is correct, that it's just not possible for a local SWF in the standalone Flash player to load a remote SWF module (not a simple movie, but which extends mx.modules.ModuleBase). I would like to be able to confirm that through documentation. That's why I asked him for a reference. --- shrikant.patil [EMAIL PROTECTED] wrote: hi, cool here i m sendung u a link of flex documentation : http://livedocs.adobe.com/labs/flex3/html/help.html?content=modular_5.html on this page there is a topic titled with : Loading modules from different servers check the security, and methods which need to take at initial stage loading a module. hope it may help regards shrikant -- View this message in context: http://www.nabble.com/SWF-is-not-a-loadable-module---crossdomain.xml-woes-tp15198022p15205661.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] SWF is not a loadable module / crossdomain.xml woes
I'm running a Flex app in my local Flash player (not in a browser) from my local disk, and I'm trying to load a module from a Tomcat server running on localhost. My Flex app is trusted and is already communicating with that server for other things, but when I try to load the module, I get the error described by Alex Harui in this blog post: http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html I've put the following crossdomain.xml file in the root document directory of the Tomcat server: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy and I still get the error. I can load the crossdomain.xml file in a browser with the URL http://localhost/crossdomain.xml. The weird thing is that the Tomcat access logs do not indicate that the Flash player running my Flex app is requesting that crossdomain.xml file at all. Does anyone have any idea what I'm doing wrong?
RE: [flexcoders] SWF is not a loadable module / crossdomain.xml woes
Local swfs cannot load remote modules. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Glasser Sent: Wednesday, January 30, 2008 8:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF is not a loadable module / crossdomain.xml woes I'm running a Flex app in my local Flash player (not in a browser) from my local disk, and I'm trying to load a module from a Tomcat server running on localhost. My Flex app is trusted and is already communicating with that server for other things, but when I try to load the module, I get the error described by Alex Harui in this blog post: http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html I've put the following crossdomain.xml file in the root document directory of the Tomcat server: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from domain=* / /cross-domain-policy and I still get the error. I can load the crossdomain.xml file in a browser with the URL http://localhost/crossdomain.xml. http://localhost/crossdomain.xml. The weird thing is that the Tomcat access logs do not indicate that the Flash player running my Flex app is requesting that crossdomain.xml file at all. Does anyone have any idea what I'm doing wrong?
[flexcoders] SWF is not a loadable module
I've compiled a mx:Module which I'm able to load fine if I place it in the same directory as my main application and load it with ModuleLoader.url = mymodule.swf. However, if I place it on my local webserver and try to load it using ModuleLoader.url = http://localhost/mymodule.swf; - I get this error: SWF is not a loadable module .. I tried searching google and found some info that it might have something to do with security, so I tried adding a crossdomain.xml to my webserver and following the steps outlined in the livedocs without success. (here: http://livedocs.adobe.com/flex/201/html/wwhelp/ wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Book_Partsfile=modular_083_1.html) Anyone know what the problem might be? Best regards, Bjørn -- http://www.juicability.com - soon a flex blog http://www.43min.com - funny movies
RE: [flexcoders] SWF is not a loadable module
Modules cannot be loaded across domains w/o crossdomain.xml permissions From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of itrashmail Sent: Friday, March 23, 2007 8:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF is not a loadable module I've compiled a mx:Module which I'm able to load fine if I place it in the same directory as my main application and load it with ModuleLoader.url = mymodule.swf. However, if I place it on my local webserver and try to load it using ModuleLoader.url = http://localhost/mymodule.swf http://localhost/mymodule.swf - I get this error: SWF is not a loadable module .. I tried searching google and found some info that it might have something to do with security, so I tried adding a crossdomain.xml to my webserver and following the steps outlined in the livedocs without success. (here: http://livedocs.adobe.com/flex/201/html/wwhelp/ http://livedocs.adobe.com/flex/201/html/wwhelp/ wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Book_Partsfile=modular_083_1.html) Anyone know what the problem might be? Best regards, Bjørn -- http://www.juicability.com http://www.juicability.com - soon a flex blog http://www.43min.com http://www.43min.com - funny movies