包 | com.adobe.icc.services.category |
接口 | public interface ICategoryService 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 | ||
Determines if a category with the specified name and type exists. | ICategoryService | ||
Create a new category. | ICategoryService | ||
Deletes a category. | ICategoryService | ||
将事件调度到事件流中。 | IEventDispatcher | ||
Lists available categories. | ICategoryService | ||
Retrieves a category given its GUID. | ICategoryService | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | IEventDispatcher | ||
从 EventDispatcher 对象中删除侦听器。 | IEventDispatcher | ||
updateCategory(currentName:String, currentType:uint, newName:String, newType:uint):com.adobe.icc.token:IAsyncToken
Update the category specified by the given name and type, to the new name and type. | ICategoryService | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | IEventDispatcher |
方法详细信息
categoryExists | () | 方法 |
public function categoryExists(name:String, type:uint):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Determines if a category with the specified name and type exists.
参数
name:String — The name of the category sought.
| |
type:uint — The type of the category sought (from CategoryType constants).
|
com.adobe.icc.token:IAsyncToken — Boolean : True if the category exists; false if not.
|
引发
Error — Throws ICCException with the appropriate error message and error code, if there was an error processing the request on the server.
|
相关 API 元素
createCategory | () | 方法 |
public function createCategory(name:String, type:uint):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Create a new category.
参数
name:String — New category name.
| |
type:uint — New category type (from CategoryType constants).
|
com.adobe.icc.token:IAsyncToken — The new Category object.
|
引发
Error — Throws ICCException with the appropriate error message and error code, if there was an error processing the request on the server.
|
相关 API 元素
deleteCategory | () | 方法 |
public function deleteCategory(categoryId:String):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Deletes a category.
参数
categoryId:String — The ID (GUID) of the category to delete.
|
com.adobe.icc.token:IAsyncToken —
|
引发
Error — Throws ICCException with the appropriate error message and error code, if there was an error processing the request on the server.
|
getAllCategories | () | 方法 |
public function getAllCategories(query:Query = null):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Lists available categories.
参数
query:Query (default = null ) — A query that specifies the statements used to filter search results. Leave null to retrieve all categories.
|
com.adobe.icc.token:IAsyncToken — An ArrayCollection of Category objects that match the query.
|
引发
Error — Throws ICCException with the appropriate error message and error code, if there was an error processing the request on the server.
|
相关 API 元素
getCategory | () | 方法 |
public function getCategory(categoryId:String):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Retrieves a category given its GUID.
参数
categoryId:String — The ID (GUID) of the category to retrieve.
|
com.adobe.icc.token:IAsyncToken — The Category object retrieved.
|
引发
Error — If the category ID is invalid.
|
相关 API 元素
updateCategory | () | 方法 |
public function updateCategory(currentName:String, currentType:uint, newName:String, newType:uint):com.adobe.icc.token:IAsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 9.5 |
运行时版本: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Update the category specified by the given name and type, to the new name and type.
参数
currentName:String — The name of the existing category.
| |
currentType:uint — The type of the existing category (from CategoryType constants).
| |
newName:String — The new name for the category.
| |
newType:uint — The type for the category (from CategoryType constants).
|
com.adobe.icc.token:IAsyncToken — The updated Category object.
|
引发
Error — Throws ICCException with the appropriate error message and error code, if there was an error processing the request on the server.
|
相关 API 元素
Tue Jun 12 2018, 11:04 AM Z