Before anyone can give you a decent answer, we need to know a little bit more.
Which program are you building your AIR app (main) in? Which program are you building Module in? How are you trying to view the swf, in ADL, as installed AIR app or with Flash Player?
In order to access the AIR filesystem APIs directly, content must be in the application sandbox. This means that the content is installed in that main applicaiton directory or a subdirectory.
You can expose AIR filesystem APIs to non-application content using the sandbox bridge feature. These topics on AIR security covers these topics:
- http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7fa3. html (for Flex developers)
- http://help.adobe.com/en_US/AIR/1.5/devappsflash/WS5b3ccc516d4fbf351e63e3d118666ade46-7fa3 .html (for Flash developers)
- http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7fa3. html (for HTML developers)
These topics talk about the sandbox bridge:
- http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7e5c. html (for Flex developers)
- http://help.adobe.com/en_US/AIR/1.5/devappsflash/WS5b3ccc516d4fbf351e63e3d118666ade46-7e5c .html (for Flash developers)
- http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e5c. html (for HTML developers)
I'm using Flash CS4 to build and to run the application.
I will try to use the info about sandboxes later.