Constructor

new(?stream:URLRequest, ?context:SoundLoaderContext)

Variables

@:flash.propertyread onlybytesLoaded:UInt

@:flash.propertyread onlybytesTotal:Int

@:flash.propertyread onlyid3:ID3Info

@:flash.propertyread onlyisBuffering:Bool

@:flash.property@:require(flash10_1)read onlyisURLInaccessible:Bool

@:flash.propertyread onlylength:Float

@:flash.propertyread onlyurl:String

Methods

@:value({ startPosition : -1 })@:require(flash10)extract(target:ByteArray, length:Float, startPosition:Float = -1):Float

@:require(flash11)loadCompressedDataFromByteArray(bytes:ByteArray, bytesLength:UInt):Void

@:value({ sampleRate : 44100, stereo : true })@:require(flash11)loadPCMFromByteArray(bytes:ByteArray, samples:UInt, ?format:String, stereo:Bool = true, sampleRate:Float = 44100):Void

@:value({ loops : 0, startTime : 0 })play(startTime:Float = 0, loops:Int = 0, ?sndTransform:SoundTransform):SoundChannel

Inherited Variables

Inherited Methods

Defined by EventDispatcher

@:value({ useWeakReference : false, priority : 0, useCapture : false })addEventListener(type:String, listener:Dynamic ‑> Void, useCapture:Bool = false, priority:Int = 0, useWeakReference:Bool = false):Void

@:value({ useCapture : false })removeEventListener(type:String, listener:Dynamic ‑> Void, useCapture:Bool = false):Void