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

Variables

@:value(cast "BINARY")@:impl@:enuminlineread onlyBINARY:AssetType = "BINARY"

Binary assets (data that is not readable as text)

@:value(cast "FONT")@:impl@:enuminlineread onlyFONT:AssetType = "FONT"

Font assets, such as .ttf or .otf files

@:value(cast "IMAGE")@:impl@:enuminlineread onlyIMAGE:AssetType = "IMAGE"

Image assets, such as .png or .jpg files

@:value(cast "MOVIE_CLIP")@:impl@:enuminlineread onlyMOVIE_CLIP:AssetType = "MOVIE_CLIP"

MovieClip assets, such as from a *.swf file

@:value(cast "MUSIC")@:impl@:enuminlineread 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")@:impl@:enuminlineread 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")@:impl@:enuminlineread onlyTEXT:AssetType = "TEXT"

Text assets