Paket | com.adobe.icc.editors.managers |
Klass | public class FileUploadManager |
Arv | FileUploadManager EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10 |
Körningsmiljöversioner: | 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.
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | 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" [statisk]
The URL where the files will be uploaded. | FileUploadManager | ||
isUploading : Boolean
Indicates whether a file upload is currenly in progress. | FileUploadManager | ||
userManager : ISSOManager [statisk]
The instance of ISSOManager which holds the information about current logged in user. | FileUploadManager |
Metod | Definieras med | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Starts the file upload on client. | FileUploadManager | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | 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 | egenskap |
contentFile:File
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The FileReference
object associated with the upload.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get contentFile():File
public function set contentFile(value:File):void
file | egenskap |
public var file:FileModel
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Represents the object encapsulating the uploaded file details.
FILE_UPLOAD_URL | egenskap |
public static var FILE_UPLOAD_URL:String = "http://localhost:4502"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The URL where the files will be uploaded.
fileReference | egenskap |
fileReference:FileReference
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The fileReference instance that opens a pop up to browse for files to be uploaded to server.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get fileReference():FileReference
public function set fileReference(value:FileReference):void
fileTypes | egenskap |
public var fileTypes:Array
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The file types filter that should apply to the Browse File dialog.
isUploading | egenskap |
public var isUploading:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | 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.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen uploadEnd
.
userManager | egenskap |
userManager:ISSOManager
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The instance of ISSOManager which holds the information about current logged in user.
Implementering
public static function get userManager():ISSOManager
public static function set userManager(value:ISSOManager):void
upload | () | metod |
public function upload(fileTypes:Array = null):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10.0 |
Körningsmiljöversioner: | 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.
Parametrar
fileTypes:Array (default = null ) — The file types filter that should apply to the Browse File dialog.
|
fault | Händelse |
flash.events.Event
egenskap Event.type =
flash.events.Event
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Dispatched to indicate the occurence of a fault during the upload process.
uploadEnd | Händelse |
flash.events.Event
egenskap Event.type =
flash.events.Event
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the file upload completes.
uploadStart | Händelse |
flash.events.Event
egenskap Event.type =
flash.events.Event
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 10 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Dispatched when the file has started to upload.
Tue Jun 12 2018, 01:40 PM Z