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

Variables

inline read onlyBINARY:AssetType = "BINARY"

Binary assets (data that is not readable as text)

inline read onlyFONT:AssetType = "FONT"

Font assets, such as .ttf or .otf files

inline read onlyIMAGE:AssetType = "IMAGE"

Image assets, such as .png or .jpg files

inline read onlyMOVIE_CLIP:AssetType = "MOVIE_CLIP"

MovieClip assets, such as from a *.swf file

inline read 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.

inline read 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.

inline read onlyTEXT:AssetType = "TEXT"

Text assets