包 | com.adobe.icc.services.external |
接口 | public interface IExternalDataService extends IEventDispatcher |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | IEventDispatcher | ||
将事件调度到事件流中。 | IEventDispatcher | ||
Load the referenced external URL as binary data. | IExternalDataService | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | IEventDispatcher | ||
从 EventDispatcher 对象中删除侦听器。 | IEventDispatcher | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | IEventDispatcher |
方法详细信息
getObject | () | 方法 |
public function getObject(url:String):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Load the referenced external URL as binary data. Supported schemes are the standard JVM URL schemes such as HTTP, FTP, file:///, etc., as well as file:// (to fetch data from a local file, i.e. the same server as the application).
Note: An exception is not thrown if the URL appears valid but the referenced resource cannot be read. In this case, the operation is deemed successful but null is returned instead of the bytes.
参数
url:String — The absolute URL from which to retrieve the data.
|
com.adobe.icc.token:IAsyncToken — A ByteArray containing the binary data retrieved or null if the URL was syntactically valid but the data could not be
read from the resource (e.g. the resource doesn't exist).
|
引发
Error — If the URL is syntactically incorrect, relative or not supported.
|
Tue Jun 12 2018, 11:04 AM Z