is this run on device/emulator or desktop? (we are in multiscreen section)
The code should work the same way - but:
- you could add IOErrorEvent handler or
- add uncaught error handler:
To see what's wrong when you test in AIR runtime
this is the error "Cannot import a SWF file when LoaderContext.allowCodeImport is false."
see, depending on how you'll be deploying AIR application (which application context) there is default value either false or true (and that is different then in Flash runtime), see:
but that is configurable as per docs sample I think