Error Unable To Load Styleswf Is Not A Loadable Module
you get this error using modules? This error means that you tried to load the module from a different server than the one the loader is running on, and/or you don't have crossdomain.xml permission to load the module from that server. Flash/Flex has a lot of security built in so that mean people can't use Flash/Flex to do mean things to other servers. All SWFs therefore belong to the domain of the server where that SWF lives. For example, if we're running a SWF that lives at http://a.b.com/main.SWF, that SWF belongs to the domain "a.b.com". If you try to load a SWF from somewhere else, such as http://c.b.com/module.SWF or http://e.f.org/module.SWF, then you are loading across domains. The Flash Player will then look in the root directory of c.b.com or e.f.org for a file called crossdomain.xml, and see if a.b.com is listed in that file (or the file lists ‘*" which means "everybody"). If not, you cannot load the SWF as a module because, due to other security restrictions in the Flash Player, SWF loaded from another domain without crossdomain.xml permission go in a separate SecurityDomain, which means that it will have its own ApplicationDomain which means it cannot share classes with the main SWF and thus the ModuleManager can't see the objects in the SWF as Modules. Because this is a security-related issue, there are no real workarounds. You either have to make sure that your modules are in the same domain as the SWFs that load them, or you have to set up crossdomain.xml files so they can be used from SWFs in other domains. If you are trying to use a third-party module, you probably don't have access to the third-party's server and thus can't add yourself as an accepted domain in their crossdomain.xml file. That's annoying, but those are the rules. Server owners must either give explicit permission or decide to openly share SWFs resources on a server by listing your domain in crossdomain.xml or using ‘*". By Alex Harui Comments (21) Created March 23, 2007 Careers Permissions & Trademarks EULAs Report Piracy Contact Adobe Security Copyright © 2016 Adobe Systems Incorporated. All rights reserved. Terms of Use | Privacy Policy and Cookies (Updated)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: http://blogs.adobe.com/aharui/2007/03/swf_is_not_a_loadable_module.html Sign up SWF is not a loadable module up vote 2 down vote favorite We are creating an app that uses modules which are dynamically loaded into the main swf. The problem we run into, is that we are unable to load the modules located on a test server when we are debugging the main app locally. The error we get is http://stackoverflow.com/questions/772579/swf-is-not-a-loadable-module "SWF is not a loadable module". I looked this up and found out that we need a crossdomain file on the server that grants permission to load the modules from external locations. So we created a simple crossdomain file and put that on the server, but this does not seem to help. Here's the crossdomain file:
to load external compiled css swfs that have an embedded font into my flex application I was getting this error: Unable to load style(SWF is not a loadable module). This is reported http://www.bradywhite.net/2008/05/05/flex-3-how-to-load-a-complied-css-swf/ as an official bug on adobe's site at: Enable Local App to load RunTime https://apps.support.sap.com/sap/support/knowledge/preview/en/2115295 CSS.swf from Server To solve this, you require two things. Crossdomain Policy Local Apache Web Server Regardless if this is a bug, the host server still needs a crossdomain policy at the root of the domain. Here's an example crossdomain.xml policy. The next problem is that you cannot load external compiled swfs from a document root (c:/my documents/flex projects/myProject/myProject.html) error unable until the bug is fixed. PC Users: What I did is installed easyphp. Next, I set up an alias in easyphp. Right click on the ‘easyphp' icon in the taskbar -> administration. I set the alias to my bin folder of my project so that when I access the url http://127.0.0.1/myProject/myProject.html it loads up my bin directory. Also in my debug settings in flex I set the default debug and run path to launch error unable to as http://127.0.0.1/myProject/myProject.html. Now my css/style swfs are loading great remotely. The only downside is having to run easyphp on top of everything just to load in my external compiled font swfs. Mac Users: Thanks to Bryce Barrand go to system preferences click on sharing click on "web sharing" (this will turn on the automatically installed version of apache) edit apache's httpd.conf file (should be found at disk/private/etc/apache2/httpd.conf) Find the line that says /Directory> Just after that, add an Alias for each project that you want to test such as this: Alias /nameOfAlias /pathToYourFlexBinFolder Set your directory node attribute to "/pathToYourFlexBinFolder". Set the directory node value to: Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all Restart the webserver by unchecking and rechecking the "web sharing" checkbox should be good to go after this. you can see the results by going to http://localhost/nameOfAlias in your browser This entry was posted in Flex, Tips and tagged compiled css, Flex, swf by Brady White. Bookmark the permalink. Recent Posts Best iPhone and iPad Wifi Settings My Thoughts on Flash Tribute to Steve Theme Change BYU MISM Graduation Apple Internship NoteSync with Google Docs Desktop Rocketship - Industrial Design Aspire - Poster & T-Shirt Creator Calculating Image Resolutions in Flex Categories Cool Sites Flex Life Portfolio School Tips Family
module): /sap(bD1FTiZjPTEwMCZpPTEmZT1RVEV5TXpNMk5GOWZYMTlmTkY5Zk1UazVBRkJXcUFIS0h1U2Y2cXNsZGZuZ1pRJTNkJTNk)/bc/bsp/sap/mktcalendar_new/nova.swf. at MethodInfo-1017() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/initHandler() Read more... Product SAP Customer Relationship Management 7.0 ; SAP Customer Relationship Management 7.0 on SAP enhancement package 1 for SAP NetWeaver 7.0 ; SAP enhancement package 1 for SAP CRM 7.0 ; SAP enhancement package 2 for SAP CRM 7.0 ; SAP enhancement package 2 for SAP CRM 7.0, version for SAP HANA ; SAP enhancement package 3 for SAP CRM 7.0 Keywords Adobe Flash Player, Flex UI, Adobe, Debug, ActionScript, Script, Flex Error , KBA , calendar , imc , adobe flash , crm , CRM-MKT-MPL , Marketing Planner About this page This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required). Search for additional results Visit SAP Support Portal's SAP Notes and KBA Search. Terms of use | Copyright | Trademark | Legal Disclosure | Privacy