start()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Not Supported (Use File | Test | Browser/Player)

Syntax
soundObject.start({secondOffset, loop});

Arguments
secondOffset: point in the Sound object to begin playing from (in seconds). This argument is optional.
loop: the number of times the Sound object should play through consecutively. This argument is optional.

Returns
Nothing.

Description
Method; starts playing the specified Sound object. Begins from the point specified by the secondOffset argument or the from the beginning if none is given.

Sample
onLoad() {
    introSound = new Sound(mySprite);
    introSound.start(10, 100);
}

// begins playing the Sound object "introSound" at the 10-second mark and loops through it 10 times