Sound.onLoad

Availability

Flash Player 6.

Usage

my_sound.onLoad = function(success){
  // your statements here
}

Parameters

success A Boolean value of true if my_sound has been loaded successfully, false otherwise.

Returns

Nothing.

Description

Event handler; invoked automatically when a sound loads. You must create a function that executes when the this handler is invoked. You can use either an anonymous function or a named function (for an example of each, see Sound.onSoundComplete). You should define this handler before you call my_sound.loadSound().

See also

Sound.loadSound()