| Package | ch.capi.net |
| Interface | public interface ILoadManager extends IGlobalEventDispatcher , IEventDispatcher |
See also
| Property | Defined By | ||
|---|---|---|---|
| bytesLoaded : uint [read-only]
Defines the bytes that have been loaded. | ILoadManager | ||
| bytesTotal : uint [read-only]
Defines the total bytes to load. | ILoadManager | ||
| closeEvent : Event [read-only]
Defines the event that happend to close the file (Event.CLOSE, Event.COMPLETE, ...). | ILoadManager | ||
| loaded : Boolean [read-only]
Defines if the ILoadManager operation is complete. | ILoadManager | ||
| stateIdle : Boolean [read-only]
Defines if the ILoadManager is idle. | ILoadManager | ||
| stateLoading : Boolean [read-only]
Defines if the ILoadManager is loading. | ILoadManager | ||
| Method | Defined By | ||
|---|---|---|---|
start():Boolean
Starts downloading data from the specified URL. | ILoadManager | ||
stop():void
Stops the load operation in progress. | ILoadManager | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the download operation stops. | ILoadManager | |||
| Dispatched after all the received data is received. | ILoadManager | |||
| Dispatched when the download operation commences following a call to the ILoadManager.load() method. | ILoadManager | |||
| Dispatched when data is received as the download operation progresses. | ILoadManager | |||
| bytesLoaded | property |
bytesLoaded:uint [read-only] Defines the bytes that have been loaded.
public function get bytesLoaded():uint| bytesTotal | property |
bytesTotal:uint [read-only] Defines the total bytes to load.
public function get bytesTotal():uint| closeEvent | property |
closeEvent:Event [read-only] Defines the event that happend to close the file (Event.CLOSE, Event.COMPLETE, ...).
public function get closeEvent():Event| loaded | property |
loaded:Boolean [read-only]
Defines if the ILoadManager operation is complete. This
value is true only if the data has been successfully loaded.
public function get loaded():Boolean| stateIdle | property |
stateIdle:Boolean [read-only]
Defines if the ILoadManager is idle.
public function get stateIdle():Boolean| stateLoading | property |
stateLoading:Boolean [read-only]
Defines if the ILoadManager is loading.
public function get stateLoading():Boolean| start | () | method |
public function start():BooleanStarts downloading data from the specified URL.
ReturnsBoolean — true if the loading has been started, false otherwise.
|
flash.errors:IllegalOperationError If — the ILoadManager is already loading.
|
| stop | () | method |
public function stop():voidStops the load operation in progress. Any load operation in progress is immediately terminated.
flash.errors:IllegalOperationError If — the ILoadManager is not loading.
|
| close | Event |
flash.events.Eventflash.events.Event.CLOSE
Dispatched when the download operation stops. This is following a call to the ILoadManager.stop()
method.
| complete | Event |
flash.events.Eventflash.events.Event.COMPLETEDispatched after all the received data is received.
| open | Event |
flash.events.Eventflash.events.Event.OPEN
Dispatched when the download operation commences following a call to the ILoadManager.load()
method.
| progress | Event |
flash.events.ProgressEventflash.events.ProgressEvent.PROGRESSDispatched when data is received as the download operation progresses.