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?



Reply via email to