I work on an air 2.0 application that is able to load some modules.
I first did the following: create a launcher that will load the modules then I created some modules I want to be loaded.
I put the modules in the launcher application and am able to load them, and use them, using the loadModule function.
But I now want to load the modules as local files but not added to the project.
I tried to use -use-network=false, try to use bytesloader, try to set relative and absolute path, put file:// in front of, and nothing worked,
All my modules are in the local computer and have no connxion that can annoy me.
I just want to be able to load a module that is in the same computer than the launcher application.
Does someone have an idea on how to do that?
That will probably require the loadbytes technique.
i tried the loadBytes techniques too but can't make it work.
I found this post: http://www.smashedapples.com/2008/07/loading-remote.html that say that it can't be done for local file,
and I try every tip he gives but still no result. Is it only possible?
There should be an example out there that uses URLLoader to get a ByteArray
and shove it into ModuleManager.