| Package | com.pcthomatos.ultraloader.types |
| Class | public class ULSound |
ULSound class is the type class for all sounds loaded in with UltraLoader.
...
import com.pcthomatos.ultraloader.UltraLoader;
import com.pcthomatos.ultraloader.types.
var testSound:ULSound;
var ul:Object = {init:true};
var ultraLoader:UltraLoader = new UltraLoader(ul);
ultraLoader.addEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
function render_Listener(e:Event):void{
ultraLoader.removeEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
testSound = ul.$sound.ding;
testSound.play();
trace(testSound.playing);
testSound.stop();
trace(testSound.playing);
...See also
| Property | Defined by | ||
|---|---|---|---|
| playing : Boolean = false Contains a boolean flag to determine if your UltraLoader sound file is currently playing.
| ULSound | ||
| sound : Sound Contains the Sound Object of your UltraLoader sound file.
| ULSound | ||
| soundChannel : SoundChannel Contains the SoundChannel of your UltraLoader sound file.
| ULSound | ||
| soundLoaderContext : SoundLoaderContext Contains the SoundLoaderContext of your UltraLoader sound file.
| ULSound | ||
| src : String Contains the source path of your UltraLoader sound file.
| ULSound | ||
| Method | Defined by | ||
|---|---|---|---|
|
ULSound()
Contructor used by UltraLoader.
| ULSound | ||
|
load(urlRequest:URLRequest):void
Primarily used by UltraLoader.
However, if you wanted to replace the sound file in your ULSound Object, you could using this method. | ULSound | ||
|
play():void
Plays the ULSound.
| ULSound | ||
|
stop():void
Stops the playing of the ULSound.
| ULSound | ||
| playing | property |
public var playing:Boolean = falseContains a boolean flag to determine if your UltraLoader sound file is currently playing.
See also
| sound | property |
public var sound:SoundContains the Sound Object of your UltraLoader sound file.
See also
| soundChannel | property |
public var soundChannel:SoundChannelContains the SoundChannel of your UltraLoader sound file.
See also
| soundLoaderContext | property |
public var soundLoaderContext:SoundLoaderContextContains the SoundLoaderContext of your UltraLoader sound file.
See also
| src | property |
public var src:StringContains the source path of your UltraLoader sound file.
| ULSound | () | constructor |
public function ULSound()Contructor used by UltraLoader.
See also
| load | () | method |
public function load(urlRequest:URLRequest):void Primarily used by UltraLoader.
However, if you wanted to replace the sound file in your ULSound Object, you could using this method.
urlRequest:URLRequest |
See also
| play | () | method |
| stop | () | method |