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

Variables

@:enum@:implinlineread onlyBINARY:AssetType

Binary assets (data that is not readable as text)

@:enum@:implinlineread onlyFONT:AssetType

Font assets, such as .ttf or .otf files

@:enum@:implinlineread onlyIMAGE:AssetType

Image assets, such as .png or .jpg files

@:enum@:implinlineread onlyMOVIE_CLIP:AssetType

MovieClip assets, such as from a *.swf file

@:enum@:implinlineread onlyMUSIC:AssetType

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.

@:enum@:implinlineread onlySOUND:AssetType

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.

@:enum@:implinlineread onlyTEXT:AssetType

Text assets