| Package | ch.capi.net.files |
| Class | public class URLStreamFile |
| Inheritance | URLStreamFile AbstractLoadableFile GlobalEventDispatcher flash.events.EventDispatcher |
| Implements | ILoadableFile |
ILoadableFile based on a URLStream object.
| Method | Defined By | ||
|---|---|---|---|
URLStreamFile(loadObject:URLStream)
Creates a new URLStreamFile object. | URLStreamFile | ||
![]() | destroy():void
Destroys this ILoadableFile. | AbstractLoadableFile | |
![]() | dispatchEvent(evt:Event):Boolean
Dispatches the specified Event through the listeners. | GlobalEventDispatcher | |
getData(asClass:String = null, appDomain:ApplicationDomain = null):*
Retrieves the data of the loadManagerObject if the loading
is complete. | URLStreamFile | ||
getEventDispatcher():IEventDispatcher
Retrieves the IEventDispatcher, which is directly the
URLStream object. | URLStreamFile | ||
getType():String
Retrieves the type of the file based on the LoadableFileType constants. | URLStreamFile | ||
![]() | invalidateFixedRequest():void
Invalidate the current fixedRequest. | AbstractLoadableFile | |
isClassSupported(aClass:String, appDomain:ApplicationDomain = null):Boolean
Retrieves if the specified class type is supported by this ILoadableFile or not. | URLStreamFile | ||
![]() | isDestroyed():Boolean
Retrieves if this ILoadableFile has been destroyed. | AbstractLoadableFile | |
![]() | isOnline():Boolean
Retrieves if the current AbstractLoadableFile is online or not. | AbstractLoadableFile | |
![]() | prepareFixedRequest():void
Tells the ILoadableFile to update the fixedRequest value that
will be used to load the file. | AbstractLoadableFile | |
![]() | start():Boolean
Set the state as loading. | AbstractLoadableFile | |
![]() | stop():void
Set the state as idle. | AbstractLoadableFile | |
![]() | toString():String
Get the URL of the AbstractLoadableFile. | AbstractLoadableFile | |
| Method | Defined By | ||
|---|---|---|---|
![]() | checkData():void
Checks if data has been loaded and is available to be retrieved. | AbstractLoadableFile | |
![]() | checkDestroyed():void
Checks if the current ILoadableFile has been destroyed and if so, throws an IllegalOperationError. | AbstractLoadableFile | |
![]() | getUpdatedUrlRequest():URLRequest
Creates a clone of the current URLRequest and put the variables values in its data. | AbstractLoadableFile | |
![]() | getURLRequest():URLRequest
Retrieves the URLRequest that is created depending of
the useCache property value. | AbstractLoadableFile | |
![]() | isInstanceOf(source:String, superClasses:Array, appDomain:ApplicationDomain = null):Boolean
Checks if the specified source class is a child of one of the specified super classes. | AbstractLoadableFile | |
![]() | isInstanceOfClass(source:String, superClass:String, appDomain:ApplicationDomain = null):Boolean
Checks if the specified source class is a child of the specified super class. | AbstractLoadableFile | |
![]() | onComplete(evt:Event):void
Event.COMPLETE listener. | AbstractLoadableFile | |
![]() | onHttpStatus(evt:HTTPStatusEvent):void
HTTPStatusEvent.HTTP_STATUS listener. | AbstractLoadableFile | |
![]() | onInit(evt:Event):void
Event.INIT listener. | AbstractLoadableFile | |
![]() | onIOError(evt:IOErrorEvent):void
IOErrorEvent listener. | AbstractLoadableFile | |
![]() | onOpen(evt:Event):void
Event.OPEN listener. | AbstractLoadableFile | |
![]() | onProgress(evt:ProgressEvent):void
ProgressEvent.PROGRESS listener. | AbstractLoadableFile | |
![]() | onSecurityError(evt:SecurityErrorEvent):void
SecurityErrorEvent listener. | AbstractLoadableFile | |
processLoading(request:URLRequest):void
Starts the loading of the URLStream. | URLStreamFile | ||
![]() | registerTo(dispatcher:IEventDispatcher):void
Register the events of the AbstractLoadableFile. | AbstractLoadableFile | |
![]() | unregisterFrom(dispatcher:IEventDispatcher):void
Unregister the events of the AbstractLoadableFile. | AbstractLoadableFile | |
| URLStreamFile | () | Constructor |
public function URLStreamFile(loadObject:URLStream)
Creates a new URLStreamFile object.
loadObject:URLStream — The URLStream object.
|
| getData | () | method |
public function getData(asClass:String = null, appDomain:ApplicationDomain = null):*
Retrieves the data of the loadManagerObject if the loading
is complete. Actually, the only class supported is DataType.STREAM.
Parameters
asClass:String (default = null) — The class instance that should be returned by the method.
| |
appDomain:ApplicationDomain (default = null) — The ApplicationDomain to retrieve the class. If null is specified, then
the current domain will be used.
|
* — The data of the loadManagerObject.
|
ArgumentError If — the class type is not supported.
| |
ch.capi.errors:DataError If — the data are not loaded.
|
See also
| getEventDispatcher | () | method |
public function getEventDispatcher():IEventDispatcher
Retrieves the IEventDispatcher, which is directly the
URLStream object.
IEventDispatcher — The URLStream object.
|
| getType | () | method |
public function getType():String
Retrieves the type of the file based on the LoadableFileType constants.
String — The ILoadableFile type.
|
| isClassSupported | () | method |
public function isClassSupported(aClass:String, appDomain:ApplicationDomain = null):Boolean
Retrieves if the specified class type is supported by this ILoadableFile or not.
Parameters
aClass:String — The class type to check.
| |
appDomain:ApplicationDomain (default = null) — The ApplicationDomain to retrieve the class. If null is specified, then
the current domain will be used.
|
Boolean — true if the type is supported.
|
| processLoading | () | method |
override protected function processLoading(request:URLRequest):void
Starts the loading of the URLStream.
Parameters
request:URLRequest |