-
Notifications
You must be signed in to change notification settings - Fork 8
urlLoader
richardszalay edited this page May 16, 2011
·
4 revisions
Creates an observable sequence that loads the data from a URL
static function urlLoader(request:URLRequest, dataFormat:String = text,
loaderContext:LoaderContext = null) : IObservable.<Object>
Where dataFormat is a value of flash.net.URLLoaderDataFormat
The returned sequence emits a value and completes after the URLLoader completes.
The returned sequence returns an error if the URLLoader dispatches a SecurityErrorEvent.SECURITY_ERROR or IOErrorEvent.IO_ERROR event. These errors will be raised to onError as SecurityError and IOError respectively.
IObservable.<Object>
Observable.urlLoader(new URLRequest("http://github.com/images/modules/header/logov3.png"))
.subscribe(function(data : Object) : void
{
trace("urlLoader complete.");
});
// Trace output is:
// urlLoader complete