Packageispring.utils.assets
Interfacepublic interface ISoundAsset extends IAsset, flash.events.IEventDispatcher

Language Version : ActionScript 3.0
Product Versions : iSpring Pro 6.0.3, iSpring Platform 6.0
Runtime Versions : AIR 1.0, Flash Player 10.1

The ISoundAsset interface represents a sound asset.

See also

ispring.utils.assets.IAsset


Public Properties
PropertyDefined By
duration : Number
[read-only] The duration of the sound asset, in seconds.
ISoundAsset
isLoaded : Boolean
[read-only] Indicates whether the asset is loaded.
IAsset
isReady : Boolean
[read-only] Indicates whether the asset is ready to use.
IAsset
progress : Number
[read-only] Returns the asset loading progress in the range 0...1.
IAsset
state : String
[read-only] The state of the asset.
IAsset
Public Methods
MethodDefined By
 
Creates an instance of the sound asset.
ISoundAsset
Inherited
load():void
Loads the asset.
IAsset
Inherited
unload():void
Unloads the asset.
IAsset
Property Detail
durationproperty
duration:Number  [read-only]

Language Version : ActionScript 3.0
Product Versions : iSpring Pro 6.0.3, iSpring Platform 6.0
Runtime Versions : AIR 1.0, Flash Player 10.1

The duration of the sound asset, in seconds.


Implementation
    public function get duration():Number

Throws
flash.errors:IllegalOperationError — Throws if the asset is not ready.

See also

Method Detail
createInstance()method
public function createInstance():ISound

Language Version : ActionScript 3.0
Product Versions : iSpring Pro 6.0.3, iSpring Platform 6.0
Runtime Versions : AIR 1.0, Flash Player 10.1

Creates an instance of the sound asset.

Returns
ISound — The ISound interface of the created sound object.

Throws
flash.errors:IllegalOperationError — Throws if the asset is not ready.

See also