This is the list of Flash specific metadata. For a complete list see Haxe built-in metadata.
Metadata | Description |
---|---|
@:bind | Override Swf class declaration |
@:bitmap (Bitmap file path) | _Embeds given bitmap data into the class (must extend flash.display.BitmapData ) |
@:debug | Forces debug information to be generated into the Swf even without --debug |
@:file(File path) | Includes a given binary file into the target Swf and associates it with the class (must extend flash.utils.ByteArray ) |
@:font (TTF path Range String) | Embeds the given TrueType font into the class (must extend flash.text.Font ) |
@:getter (Class field name) | Generates a native getter function on the given field |
@:noDebug | Does not generate debug information into the Swf even if --debug is set |
@:ns | Internally used by the Swf generator to handle namespaces |
@:setter (Class field name) | Generates a native setter function on the given field |
@:sound (File path) | Includes a given .wav or .mp3 file into the target Swf and associates it with the class (must extend flash.media.Sound ) |