new

new( fileName )

Creates a new Sound object, which will play one of the sounds from the Asset Manager. Note that the sound must be first uploaded to the Asset Manager before it can be used.

Note that sounds are not automatically free'd, you must free them yourself by calling the 'free' method!

music = new Sound( 'background.mp3' )
music.play()

See also

free