12.3.4 Flash target Metadata

This is the list of Flash specific metadata. For a complete list see Haxe built-in metadata.

MetadataDescription
@:bindOverride Swf class declaration
@:bitmap (Bitmap file path)_Embeds given bitmap data into the class (must extend flash.display.BitmapData)
@:debugForces 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
@:noDebugDoes not generate debug information into the Swf even if --debug is set
@:nsInternally 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)