| Package | com.gaiaframework.api |
| Interface | public interface INetStream extends IAsset, flash.events.IEventDispatcher |
NetStreamAsset.
See also
| Property | Defined by | ||
|---|---|---|---|
| bufferLength : Number [read-only]
| INetStream | ||
| bufferTime : Number | INetStream | ||
![]() | bytes : int
Returns the bytes attribute value set in the
site.xml for byte-accurate preloading. | IAsset | |
| bytesLoaded : int [read-only]
| INetStream | ||
| bytesTotal : int [read-only]
| INetStream | ||
| client : Object | INetStream | ||
| currentFPS : Number [read-only]
| INetStream | ||
| duration : Number [read-only]
Returns the duration of the NetStream.
| INetStream | ||
![]() | id : String
Returns the ID as set in
site.xml. | IAsset | |
| metaData : Object [read-only]
Returns the metaData of the NetStream.
| INetStream | ||
![]() | node : XML
Returns the raw XML node of the asset
| IAsset | |
| ns : NetStream [read-only]
Returns the reference to the NetStream
| INetStream | ||
![]() | order : int
Returns the load order and position of the asset relative to other assets of the page.
| IAsset | |
| pan : Number
Specifies the pan of the NetStream.
| INetStream | ||
![]() | percentLoaded : Number
Returns the bytesLoaded / bytesTotal.
| IAsset | |
![]() | preloadAsset : Boolean
Specifies a value of
true if the asset is set to preload, or false if it is on-demand. | IAsset | |
![]() | showProgress : Boolean
Specifies whether the asset will cause the asset preloader to appear when loaded on-demand.
| IAsset | |
| soundTransform : SoundTransform | INetStream | ||
![]() | src : String
Returns the source path of the asset.
| IAsset | |
| time : Number [read-only]
| INetStream | ||
![]() | title : String
Specifies the title of the asset.
| IAsset | |
| volume : Number
Specifies the volume of the NetStream.
| INetStream | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
abort():void
Used to manually abort an on-demand asset load.
| IAsset | |
|
attach(video:Video):void
Attach the NetStreamAsset to a Video instance.
| INetStream | ||
|
close():void
| INetStream | ||
|
fadeTo(volume:Number, duration:Number, onComplete:Function = null):void
Adjust the volume over time to a particular value.
| INetStream | ||
![]() |
getBytesLoaded():int
Returns the loaded bytes of the file.
| IAsset | |
![]() |
getBytesTotal():int
Returns the total bytes of the file.
| IAsset | |
![]() |
load(... args):void
Used to load assets on-demand.
| IAsset | |
|
panTo(pan:Number, duration:Number, onComplete:Function = null):void
Adjust the pan over time to a particular value.
| INetStream | ||
|
pause():void
| INetStream | ||
|
play(start:Number = -2, len:Number = -1):void
| INetStream | ||
|
resume():void
| INetStream | ||
|
seek(offset:Number):void
| INetStream | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Dispatched when the asset is finished loading. | IAsset | ||
| Dispatched when the NetStream's fires an AsyncErrorEvent | INetStream | |||
| Dispatched when the NetStream's onCuePoint event is received | INetStream | |||
| Dispatched when the NetStream's onImageData event is received | INetStream | |||
| Dispatched when the NetStream's onMetaData event is received | INetStream | |||
| Dispatched when a NetStream object is reporting its status or error condition. | INetStream | |||
| Dispatched when the NetStream's onTextData event is received | INetStream | |||
| Dispatched when the NetStream's onXMPData event is received | INetStream | |||
| bufferLength | property |
bufferLength:Number [read-only]Implementation
public function get bufferLength():Number
See also
| bufferTime | property |
bufferTime:Number [read-write]Implementation
public function get bufferTime():Number
public function set bufferTime(value:Number):void
See also
| bytesLoaded | property |
bytesLoaded:int [read-only]Implementation
public function get bytesLoaded():int
See also
| bytesTotal | property |
bytesTotal:int [read-only]Implementation
public function get bytesTotal():int
See also
| client | property |
client:Object [read-write]Implementation
public function get client():Object
public function set client(value:Object):void
See also
| currentFPS | property |
currentFPS:Number [read-only]Implementation
public function get currentFPS():Number
See also
| duration | property |
duration:Number [read-only]Returns the duration of the NetStream. Available after the meteData is loaded.
Implementation public function get duration():Number
| metaData | property |
metaData:Object [read-only]Returns the metaData of the NetStream. Available after the metaData is loaded.
Implementation public function get metaData():Object
| ns | property |
ns:NetStream [read-only]Returns the reference to the NetStream
Implementation public function get ns():NetStream
| pan | property |
pan:Number [read-write]Specifies the pan of the NetStream.
Implementation public function get pan():Number
public function set pan(value:Number):void
| soundTransform | property |
soundTransform:SoundTransform [read-write]Implementation
public function get soundTransform():SoundTransform
public function set soundTransform(value:SoundTransform):void
See also
| time | property |
time:Number [read-only]Implementation
public function get time():Number
See also
| volume | property |
volume:Number [read-write]Specifies the volume of the NetStream.
Implementation public function get volume():Number
public function set volume(value:Number):void
| attach | () | method |
public function attach(video:Video):voidAttach the NetStreamAsset to a Video instance. A convenience method for Video.attachNetStream(NetStreamAsset.ns);
Parametersvideo:Video — A reference to a flash.media.Video instance
|
See also
| close | () | method |
| fadeTo | () | method |
public function fadeTo(volume:Number, duration:Number, onComplete:Function = null):voidAdjust the volume over time to a particular value.
Parametersvolume:Number — A value between 0 and 1.
|
|
duration:Number — The duration of the fade in seconds.
|
|
onComplete:Function (default = null) — The callback function to call when the fade is complete
|
| panTo | () | method |
public function panTo(pan:Number, duration:Number, onComplete:Function = null):voidAdjust the pan over time to a particular value.
Parameterspan:Number — A value between -1 and 1.
|
|
duration:Number — The duration of the pan in seconds.
|
|
onComplete:Function (default = null) — The callback function to call when the pan is complete
|
| pause | () | method |
| play | () | method |
public function play(start:Number = -2, len:Number = -1):voidParameters
start:Number (default = -2) |
|
len:Number (default = -1) |
See also
| resume | () | method |
| seek | () | method |
public function seek(offset:Number):voidParameters
offset:Number |
See also
| asyncError | event |
flash.events.AsyncErrorEvent
Dispatched when the NetStream's fires an AsyncErrorEvent
See also
| cuePoint | event |
com.gaiaframework.events.NetStreamAssetEvent
Dispatched when the NetStream's onCuePoint event is received
| imageData | event |
com.gaiaframework.events.NetStreamAssetEvent
Dispatched when the NetStream's onImageData event is received
| metaData | event |
com.gaiaframework.events.NetStreamAssetEvent
Dispatched when the NetStream's onMetaData event is received
| netStatus | event |
flash.events.NetStatusEvent
Dispatched when a NetStream object is reporting its status or error condition.
See also
| textData | event |
com.gaiaframework.events.NetStreamAssetEvent
Dispatched when the NetStream's onTextData event is received
| xmpData | event |
com.gaiaframework.events.NetStreamAssetEvent
Dispatched when the NetStream's onXMPData event is received