The bytecode in the library.swf file is used by the compiler for type checking and things. Similarly, IDEs use it to provide code intelligence.
-- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, May 20, 2022 at 3:02 PM Hugo Ferreira <hferreira...@gmail.com> wrote: > Hi, > > I was surprised today that I found that I can compile a library (SWC-JS) > with the pure JS version of the framework. > I thought that I needed the SWF+JS version to be able to do that. > That's a great surprise and usefull to split and reuse comum parts of the > code. > > Since a SWC it's a zip file, what's thw reason to use the library.swf > inside of the file ? > I guess that the catalog.xml it's used by IDE (on my case VS Code) ? > > Why not call the file something different like JSL (Java Script Library) or > ARL (Apache Royale Library) ? > > I see that I can easly debug the library with VS Code (that it's expanded > on the application project) but I'm debuging you JS only that's not bad but > would be great if we can debug the AS3/MXML files => Perhaps a new > asconfig.json variable to build with the necessary metadata as source files > to debug. > > Regards, > Hugo. >