com.adobe.icc.editors.managers

# ImportExportManager - AS3 Asset Composer

Package | com.adobe.icc.editors.managers
Class | public class ImportExportManager
Inheritance | ImportExportManager EventDispatcher Object

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

A manager for managaging the asset import export functionality.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | assetIdList : IList Gets the List of Id's of assets to be exported . | ImportExportManager
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | exportAssetList : IList Gets the List of all the assets that would be exported or imported including the dependencies. | ImportExportManager

Protected Properties

| Property | Defined By
--- | --- | ---
|  | fileUploadManager : FileUploadManager File Upload Manger For uploading files to the server | ImportExportManager

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | ImportExportManager() Constructor. | ImportExportManager
|  | 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
|  | dispatchEvent(event:Event):Boolean Dispatches an event into the event flow. | EventDispatcher
|  | exportAllAssetInfo():void This is called in case user pressed the Export All assets button present in the export tab of admin view. | ImportExportManager
|  | exportPackage(exportInfoFlag:String):void Calls the server for exporting the package.In case exportInfoFlag is true , then export all assets are called . | ImportExportManager
|  | getPackageDependencies():void Fetches the package dependencies from the server | ImportExportManager
|  | hasEventListener(type:String):Boolean Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | EventDispatcher
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | importAsset(importFilePath:String):void This function imports the package using the crx path by making a server call . | ImportExportManager
|  | importPackage():void Calls the server for importing the package. | ImportExportManager
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void Removes a listener from the EventDispatcher object. | EventDispatcher
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object
|  | willTrigger(type:String):Boolean Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | EventDispatcher

Protected Methods

| Method | Defined By
--- | --- | ---
|  | onExportAssetComplete(e:ResultEvent):void | ImportExportManager
|  | onImportPackageComplete(e:ResultEvent):void | ImportExportManager
|  | onImportPackageFail(e:FaultEvent):Function | ImportExportManager

Events
Click for more information on events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | activate | [broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher
|  | deactivate | [broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher

Public Constants

| Constant | Defined By
--- | --- | ---
|  | ACTION_EXPORTPACKAGE : * = ExportPackage [static] The constant specifying the export package action. | ImportExportManager
|  | ACTION_IMPORTPACKAGE : * = ImportPackage [static] The constant specifying the import package action. | ImportExportManager

Property Detail

### assetIdList

property

`assetIdList:IList`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Gets the List of Id's of assets to be exported .

This property can be used as the source for data binding. When this property is modified, it dispatches the `propertyChange` event.

Implementation
`public function get assetIdList():IList`
`public function set assetIdList(value:IList):void`

### exportAssetList

property

`exportAssetList:IList`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Gets the List of all the assets that would be exported or imported including the dependencies.

This property can be used as the source for data binding. When this property is modified, it dispatches the `propertyChange` event.

Implementation
`public function get exportAssetList():IList`
`public function set exportAssetList(value:IList):void`

### fileUploadManager

property

`protected var fileUploadManager:FileUploadManager`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

File Upload Manger For uploading files to the server

Constructor Detail

### ImportExportManager

()
Constructor

`public function ImportExportManager()`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Constructor.

Method Detail

### exportAllAssetInfo

()
method

`public function exportAllAssetInfo():void`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

This is called in case user pressed the Export All assets button present in the export tab of admin view.

### exportPackage

()
method

`public function exportPackage(exportInfoFlag:String):void`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Calls the server for exporting the package.In case exportInfoFlag is true , then export all assets are called .

Parameters

| `exportInfoFlag:String` — The string whose value if true calls export all assets.

### getPackageDependencies

()
method

`public function getPackageDependencies():void`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Fetches the package dependencies from the server

### importAsset

()
method

`public function importAsset(importFilePath:String):void`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

This function imports the package using the crx path by making a server call .

Parameters

| `importFilePath:String` — The file path from which assets will be imported.

### importPackage

()
method

`public function importPackage():void`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

Calls the server for importing the package.

### onExportAssetComplete

()
method

`protected function onExportAssetComplete(e:ResultEvent):void`

Parameters

| `e:ResultEvent`

### onImportPackageComplete

()
method

`protected function onImportPackageComplete(e:ResultEvent):void`

Parameters

| `e:ResultEvent`

### onImportPackageFail

()
method

`protected function onImportPackageFail(e:FaultEvent):Function`

Parameters

| `e:FaultEvent`

Returns

| `Function`

Constant Detail

### ACTION_EXPORTPACKAGE

Constant

`public static const ACTION_EXPORTPACKAGE:* = ExportPackage`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

The constant specifying the export package action.

### ACTION_IMPORTPACKAGE

Constant

`public static const ACTION_IMPORTPACKAGE:* = ImportPackage`

Language Version: | ActionScript 3.0

Product Version: | Asset Composer Building Block 10.0

Runtime Versions: | AIR (unsupported), Flash Player 10.2

The constant specifying the import package action.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00