套件 | 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, 03:47 PM Z