What is SWF format?
SWF is a bytecode format that bundles Flash-usable resources, including code, animation, sound, and binary or text data. A SWF file’s resources are accessible as a unified namespace from within Flash. This means that if you have a resource named “MyResource” in the SWF, you should have a corresponding class named “MyResource” in your code that can be instanced to access the resource. haXe’s compiler model is code-centric and unlike the Flex compiler “MXMLC,” haXe does not have a direct method of embedding arbitrary assets. Instead, we use asset-oriented SWF compilers such as Swfmill or SamhaXe to build a library SWF, and compile the code with the “swf-lib” option to create a final SWF with all assets bound together. SWFs can host other SWFs, a powerful but complex feature that enables multi-loading, pre-loaders, and other arrangements. Each SWF contains its own namespace and is responsible for its own security. Inter-SWF access is allowed through the ApplicationDomain and Security clas