The AssetType enum lists the core set of available asset types from the OpenFL command-line tools.

Variables

@:value(cast "BINARY")@:enum@:implinlineread onlyBINARY:AssetType = "BINARY"

Binary assets (data that is not readable as text)

@:value(cast "FONT")@:enum@:implinlineread onlyFONT:AssetType = "FONT"

Font assets, such as .ttf or .otf files

@:value(cast "IMAGE")@:enum@:implinlineread onlyIMAGE:AssetType = "IMAGE"

Image assets, such as .png or .jpg files

@:value(cast "MOVIE_CLIP")@:enum@:implinlineread onlyMOVIE_CLIP:AssetType = "MOVIE_CLIP"

MovieClip assets, such as from a *.swf file

@:value(cast "MUSIC")@:enum@:implinlineread onlyMUSIC:AssetType = "MUSIC"

Audio assets, such as .ogg or .wav files

In previous versions of OpenFL, AssetType.MUSIC was recommended for long background music, but in current versions, both AssetType.MUSIC and AssetType.SOUND behave similarly.

A future version may implement optimizations specific to each audio type again.

@:value(cast "SOUND")@:enum@:implinlineread onlySOUND:AssetType = "SOUND"

Audio assets, such as .ogg or .wav files

In previous versions of OpenFL, AssetType.SOUND was recommended for short or repetitively used sounds, but in current versions, both AssetType.MUSIC and AssetType.SOUND behave similarly.

A future version may implement optimizations specific to each audio type again.

@:value(cast "TEXT")@:enum@:implinlineread onlyTEXT:AssetType = "TEXT"

Text assets