(Beta)
Package | com.adobe.icc.services.external |
Interface | public interface IExternalDataService extends IEventDispatcher |
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Public Methods
Method | Defined By | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | IEventDispatcher | ||
Dispatches an event into the event flow. | IEventDispatcher | ||
Loads the referenced external URL as binary data. | IExternalDataService | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | IEventDispatcher | ||
Removes a listener from the EventDispatcher object. | IEventDispatcher | ||
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | IEventDispatcher |
Method Detail
getObject | () | method |
public function getObject(url:String):com.adobe.icc.token:IAsyncToken
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Loads the referenced external URL as binary data. Supported schemes are the standard Java Virtual Machine URL schemes such as HTTP, FTP, and file:///. It also supports file://, which fetches data from a local file. That is, the same server as the application.
Note: An exception is not thrown if the URL appears to be valid but the referenced resource cannot be read. In this case, the operation is treated as if it is successful, but null is returned instead of the bytes.
Parameters
url:String — The absolute URL to retrieve the data from.
|
com.adobe.icc.token:IAsyncToken — A ByteArray that contains the binary data retrieved. Null if the URL is syntactically valid but the data cannot be read from the resource.
For example, if the resource does not exist.
|
Throws
Error — If the syntax of the URL is incorrect, relative, or not supported.
|
Wed Nov 21 2018, 06:34 AM -08:00