Package | com.adobe.icc.editors.managers |
Class | public class FileUploadManager |
Inheritance | FileUploadManager EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
FileUploadManager
handles the upload of files to the CM server.
There are instances where a file needs to be associated with an asset e.g. an XDP
file is associated with Layout, an JPEG file is associated with Image module. The
files need to uploaded to the server via the upload servlet.
FileUploadManager
abstracts the servlet path and authentication
details and lets you upload files with a simplified API.
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
file : FileModel
Represents the object encapsulating the uploaded file details. | FileUploadManager | ||
fileReference : FileReference
The FileReference object associated with the upload. | FileUploadManager | ||
fileTypes : Array
The file types filter that should apply to the Browse File dialog. | FileUploadManager | ||
isUploading : Boolean
Indicates whether a file upload is currenly in progress. | FileUploadManager | ||
userManager : ISSOManager [static]
SSO Manager instance associated with the current session
| FileUploadManager |
Method | Defined By | ||
---|---|---|---|
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 | ||
Cancels a file upload in progress. | FileUploadManager | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Starts the file upload on client. | FileUploadManager | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher | |||
[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher | |||
Dispatched to indicate the occurence of a fault during the upload process. | FileUploadManager | |||
Dispatched when the file upload completes. | FileUploadManager | |||
Dispatched when the file has started to upload. | FileUploadManager |
file | property |
public var file:FileModel
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Represents the object encapsulating the uploaded file details.
fileReference | property |
fileReference:FileReference
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
The FileReference
object associated with the upload.
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 fileReference():FileReference
public function set fileReference(value:FileReference):void
fileTypes | property |
public var fileTypes:Array
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
The file types filter that should apply to the Browse File dialog.
isUploading | property |
public var isUploading:Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Indicates whether a file upload is currenly in progress. This flag stays true till the time a file is being uploaded.
This property can be used as the source for data binding. When this property is modified, it dispatches the uploadEnd
event.
userManager | property |
userManager:ISSOManager
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
SSO Manager instance associated with the current session
Implementation
public static function get userManager():ISSOManager
public static function set userManager(value:ISSOManager):void
cancel | () | method |
public function cancel():void
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Cancels a file upload in progress. This method has no effect if no file is uploading.
upload | () | method |
public function upload(fileTypes:Array = null):void
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR 1.0, Flash Player 9, Flash Player 10 |
Starts the file upload on client.
Invoking this method launches the File Browse dialog and lets the user choose a file for upload. The upload starts immediately after the user chooses a file for upload.
Parameters
fileTypes:Array (default = null ) — The file types filter that should apply to the Browse File dialog.
|
fault | Event |
flash.events.Event
property Event.type =
mx.events.Event
Dispatched to indicate the occurence of a fault during the upload process.
uploadEnd | Event |
flash.events.Event
property Event.type =
mx.events.Event
Dispatched when the file upload completes.
uploadStart | Event |
flash.events.Event
property Event.type =
mx.events.Event
Dispatched when the file has started to upload.
Wed Nov 21 2018, 06:34 AM -08:00