包 | com.adobe.icc.editors.managers |
类 | public class FileUploadManager |
继承 | FileUploadManager EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
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.
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
contentFile : File
The FileReference object associated with the upload. | FileUploadManager | ||
file : FileModel
Represents the object encapsulating the uploaded file details. | FileUploadManager | ||
fileReference : FileReference
The fileReference instance that opens a pop up to browse for files to be uploaded to server. | FileUploadManager | ||
fileTypes : Array
The file types filter that should apply to the Browse File dialog. | FileUploadManager | ||
FILE_UPLOAD_URL : String = "http://localhost:4502" [静态]
The URL where the files will be uploaded. | FileUploadManager | ||
isUploading : Boolean
Indicates whether a file upload is currenly in progress. | FileUploadManager | ||
userManager : ISSOManager [静态]
The instance of ISSOManager which holds the information about current logged in user. | FileUploadManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
Starts the file upload on client. | FileUploadManager | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | 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 |
contentFile | 属性 |
contentFile:File
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The FileReference
object associated with the upload.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get contentFile():File
public function set contentFile(value:File):void
file | 属性 |
public var file:FileModel
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Represents the object encapsulating the uploaded file details.
FILE_UPLOAD_URL | 属性 |
public static var FILE_UPLOAD_URL:String = "http://localhost:4502"
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The URL where the files will be uploaded.
fileReference | 属性 |
fileReference:FileReference
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The fileReference instance that opens a pop up to browse for files to be uploaded to server.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get fileReference():FileReference
public function set fileReference(value:FileReference):void
fileTypes | 属性 |
public var fileTypes:Array
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The file types filter that should apply to the Browse File dialog.
isUploading | 属性 |
public var isUploading:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Indicates whether a file upload is currenly in progress. This flag stays true till the time a file is being uploaded.
此属性可用作数据绑定的源。修改此属性后,将调度 uploadEnd
事件。
userManager | 属性 |
userManager:ISSOManager
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The instance of ISSOManager which holds the information about current logged in user.
实现
public static function get userManager():ISSOManager
public static function set userManager(value:ISSOManager):void
upload | () | 方法 |
public function upload(fileTypes:Array = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
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.
参数
fileTypes:Array (default = null ) — The file types filter that should apply to the Browse File dialog.
|
fault | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched to indicate the occurence of a fault during the upload process.
uploadEnd | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the file upload completes.
uploadStart | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the file has started to upload.
Tue Jun 12 2018, 11:04 AM Z