| Package | ispring.utils.assets |
| Interface | public 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 |
See also
| Property | Defined 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 |
| Method | Defined By | |
|---|---|---|
Creates an instance of the sound asset. | ISoundAsset | |
![]() | load():void
Loads the asset. | IAsset |
![]() | unload():void
Unloads the asset. | IAsset |
| duration | property |
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.
public function get duration():Numberflash.errors:IllegalOperationError — Throws if the asset is not ready.
|
See also
| 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.
ReturnsISound — The ISound interface of the created sound object.
|
flash.errors:IllegalOperationError — Throws if the asset is not ready.
|
See also