8.4.4 Implementation details
Haxe uses the target platform's native resource embedding if there is one, otherwise, it provides its own implementation.
- Flash resources are embedded as ByteArray definitions
- C# resources are included in the compiled assembly
- Java resources are packed in the resulting JAR file
- C++ resources are stored in global byte array constants.
- JavaScript resources are serialized in Haxe serialization format and stored in a static field of
haxe.Resource
class. - Neko resources are stored as strings in a static field of
haxe.Resource
class. - PHP resources are stored as files in the
res
directory within the output directory.