flash.media.Sound

type
class
extends
flash.events.EventDispatcher
available in
flash

Constructor

new(?stream : flash.net.URLRequest, ?context : SoundLoaderContext)

Instance Variables hide inherited show inherited

bytesLoaded(default,null) : UInt

bytesTotal(default,null) : Int

id3(default,null) : ID3Info

isBuffering(default,null) : Bool

isURLInaccessible(default,null) : Bool

metadata
:require
flash10_1

length(default,null) : Float

url(default,null) : String

Instance Methods hide inherited show inherited

addEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void

close() : Void

dispatchEvent(event : Event) : Bool

extract(target : flash.utils.ByteArray, length : Float, ?startPosition : Float) : Float

metadata
:require
flash10

hasEventListener(type : String) : Bool

load(stream : flash.net.URLRequest, ?context : SoundLoaderContext) : Void

loadCompressedDataFromByteArray(bytes : flash.utils.ByteArray, bytesLength : UInt) : Void

metadata
:require
flash11

loadPCMFromByteArray(bytes : flash.utils.ByteArray, samples : UInt, ?format : String, ?stereo : Bool, ?sampleRate : Float) : Void

metadata
:require
flash11

play(?startTime : Float, ?loops : Int, ?sndTransform : SoundTransform) : SoundChannel

removeEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool) : Void

toString() : String

willTrigger(type : String) : Bool