Hi, hopefully this is a simple question, but it's leaving me a little lost.
Any help appreciated.
You create a SWC for AIR using the acompc utility (compc should also work if there are no references to AIR-only APIs). You can't use the SWC directly. You have to "unzip" it (you can change the extension from .swc to .zip) and extract the Library.swf.
The error claiming the "com" variable is unavailable is a reference error. You have to provide the fully qualified package name for any classes referenced. However, the syntax for a package reference and a variable reference overlap, so if the package name can't be resolved, the error is reported as an undefined variable instead of an unknown package.
If you had a LibraryClass class defined in a utilities package, you would reference it as follows:
var libraryObject = new window.runtime.utilities.LibraryClass();
Yeap, that was what I needed. I didn't help myself however, by trying to access embedded classes within the SWF.
All working now though, thanks.