ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.livecycle.assetmanager.client.managers 

AssetManager  - AS3 Asset Manager

Packagecom.adobe.livecycle.assetmanager.client.managers
Classpublic class AssetManager
InheritanceAssetManager Inheritance EventDispatcher Inheritance Object
Deprecated: Deprecated

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

The domain model that is used to load AssetDescriptors. It also loads permissions that are not set by the client application before initialization. Call the initialize method before using the model.



Public Properties
 PropertyDefined By
  assetDescriptors : IList
Returns the list of available AssetDescriptors.
AssetManager
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  userPermissions : IList
Specifies the permissions for the current user.
AssetManager
  userPermissionsPrefixMap : Object
[write-only] Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}.
AssetManager
Public Methods
 MethodDefined By
  
Constructor.
AssetManager
 Inherited
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.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
  
Loads AssetDescriptors.
AssetManager
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
  
Initialization is not required if the client explicitly sets UserPermissions and loads assets using fetchAssetDescriptors().
AssetManager
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
  
Resets the Asset Manager building block state to its state when assetDescriptors was created.
AssetManager
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.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
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
Public Constants
 ConstantDefined By
  EVENT_ASSET_DESCRIPTORS_CHANGED : String = "assetDescriptorsChanged"
[static] Defines the event type for an assetDescriptorsChanged event.
AssetManager
  EVENT_ASSET_LOAD_ERROR : String = "assetLoadError"
[static] Defines the event type for an assetLoadError event.
AssetManager
  EVENT_ASSET_PERMISSION_LOAD_ERROR : String = "assetPermissionsLoadError"
[static] Defines the event type for an assetPermissionsLoadError event.
AssetManager
Property Detail

assetDescriptors

property
assetDescriptors:IList

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Returns the list of available AssetDescriptors.



Implementation
    public function get assetDescriptors():IList
    public function set assetDescriptors(value:IList):void

userPermissions

property 
userPermissions:IList

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the permissions for the current user.



Implementation
    public function get userPermissions():IList
    public function set userPermissions(value:IList):void

userPermissionsPrefixMap

property 
userPermissionsPrefixMap:Object  [write-only]

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}.



Implementation
    public function set userPermissionsPrefixMap(value:Object):void
Constructor Detail

AssetManager

()Constructor
public function AssetManager()

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Constructor.

Method Detail

fetchAssetDescriptors

()method
public function fetchAssetDescriptors():void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Loads AssetDescriptors.

initialize

()method 
public function initialize():void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: 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

()method 
public function reset():void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: 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.

Event Detail

assetDescriptorsChanged

Event
Event Object Type: flash.events.Event

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Thrown when assetDescriptors are reset.

assetLoadError

Event  
Event Object Type: mx.rpc.events.FaultEvent

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Thrown if an error occurs when AssetTypeDescriptor is loading.

assetPermissionsLoadError

Event  
Event Object Type: mx.rpc.events.FaultEvent

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Thrown if an error occurs when permissions are loading.

Constant Detail

EVENT_ASSET_DESCRIPTORS_CHANGED

Constant
public static const EVENT_ASSET_DESCRIPTORS_CHANGED:String = "assetDescriptorsChanged"

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Defines the event type for an assetDescriptorsChanged event.

EVENT_ASSET_LOAD_ERROR

Constant 
public static const EVENT_ASSET_LOAD_ERROR:String = "assetLoadError"

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Defines the event type for an assetLoadError event.

EVENT_ASSET_PERMISSION_LOAD_ERROR

Constant 
public static const EVENT_ASSET_PERMISSION_LOAD_ERROR:String = "assetPermissionsLoadError"

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Defines the event type for an assetPermissionsLoadError event.