包 | com.adobe.livecycle.assetmanager.client.managers |
类 | public class AssetManager |
继承 | AssetManager EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
属性 | 由以下参数定义 | ||
---|---|---|---|
assetDescriptors : IList
Returns the list of available AssetDescriptors. | AssetManager | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
userPermissions : IList
Specifies the permissions for the current user. | AssetManager | ||
userPermissionsPrefixMap : Object [只写]
Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}. | AssetManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor. | AssetManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
Loads AssetDescriptors. | AssetManager | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
Initialization is not required if the client explicitly sets UserPermissions and loads assets using fetchAssetDescriptors(). | AssetManager | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
Resets the Asset Manager building block state to its state when assetDescriptors was created. | AssetManager | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
Thrown when assetDescriptors are reset. | AssetManager | |||
Thrown if an error occurs when AssetTypeDescriptor is loading. | AssetManager | |||
Thrown if an error occurs when permissions are loading. | AssetManager | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher |
常量 | 由以下参数定义 | ||
---|---|---|---|
EVENT_ASSET_DESCRIPTORS_CHANGED : String = "assetDescriptorsChanged" [静态]
Defines the event type for an assetDescriptorsChanged event. | AssetManager | ||
EVENT_ASSET_LOAD_ERROR : String = "assetLoadError" [静态]
Defines the event type for an assetLoadError event. | AssetManager | ||
EVENT_ASSET_PERMISSION_LOAD_ERROR : String = "assetPermissionsLoadError" [静态]
Defines the event type for an assetPermissionsLoadError event. | AssetManager |
assetDescriptors | 属性 |
userPermissions | 属性 |
userPermissionsPrefixMap | 属性 |
userPermissionsPrefixMap:Object
[只写] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}
.
实现
public function set userPermissionsPrefixMap(value:Object):void
AssetManager | () | 构造函数 |
public function AssetManager()
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor.
fetchAssetDescriptors | () | 方法 |
public function fetchAssetDescriptors():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Loads AssetDescriptors.
initialize | () | 方法 |
public function initialize():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Initialization is not required if the client explicitly sets UserPermissions and loads assets using fetchAssetDescriptors().
reset | () | 方法 |
public function reset():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Resets the Asset Manager building block state to its state when assetDescriptors was created. That is, its initial state.
assetDescriptorsChanged | 事件 |
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Thrown when assetDescriptors are reset.
assetLoadError | 事件 |
mx.rpc.events.FaultEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Thrown if an error occurs when AssetTypeDescriptor is loading.
assetPermissionsLoadError | 事件 |
mx.rpc.events.FaultEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Thrown if an error occurs when permissions are loading.
EVENT_ASSET_DESCRIPTORS_CHANGED | 常量 |
public static const EVENT_ASSET_DESCRIPTORS_CHANGED:String = "assetDescriptorsChanged"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Defines the event type for an assetDescriptorsChanged event.
EVENT_ASSET_LOAD_ERROR | 常量 |
public static const EVENT_ASSET_LOAD_ERROR:String = "assetLoadError"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Defines the event type for an assetLoadError event.
EVENT_ASSET_PERMISSION_LOAD_ERROR | 常量 |
public static const EVENT_ASSET_PERMISSION_LOAD_ERROR:String = "assetPermissionsLoadError"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Manager Building Block 9.5 |
运行时版本: | AIR 1.0, Flash Player 9, Flash Player 10 |
Defines the event type for an assetPermissionsLoadError event.
Tue Jun 12 2018, 11:04 AM Z