FLAG 3.0 GET

Sound

Sounds created in POLE require two file types to cover all browsers including an mp3 and a ogg file. FLAG then determines which file is needed at runtime and loads the proper file type.

Class

FLAGSOUND

Called by FLAG.Sound

FLAG.Sound( name:String ); Parameters name:String --- The name of a Sound Example
FLAG.Sound("mySound");
Extend Class Example
FLAGSOUND.prototype.myFunction = function(){
console.log("I added to the FLAGSOUND Class");
};

Properties

name:String --- Name of the Sound created in POLE audioTag:Object --- HTML5 audio tag to hold the Sound file looped:Boolean --- True if the Sound loops

Methods

Loop Start

Sets a Sound to start looping.

FLAG.Sound("mySound").loopStart( );

Loop Stop

Sets a Sound to stop looping.

FLAG.Sound("mySound").loopStop( );

Play

Plays a Sound.

FLAG.Sound("mySound").play( );

Stop

Stops a Sound.

FLAG.Sound("mySound").stop( );

Listeners

AUDIO

ended:Function --- Calls FLAG.Sound("mySound").loop()
POLE WIND