Module must be in same dir as main SWF Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of skuteboarding Sent: Thursday, February 19, 2009 12:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Loading modules from within AIR Hi, I'm currently converting a Flex app to AIR and I've hit a stumbling block right at the start. When I try to load a module from disk I get the following error: "SWF is not a loadable module" Which after reading a couple of links I discover is a security message (normally in Flex it means you're trying to load something on a different server). In AIR how do I load a module from disk? A code example would be great. This is what I'm using currently: m_moduleInfo = ModuleManager.getModule(url); Where url is a File.url property.