Packageefnx.net
Classpublic class MultiUploader
InheritanceMultiUploader Inheritance flash.events.EventDispatcher

MultiUploader allows the user to upload multiple files as ByteArrays asyncronously. Use of this class requires efnx.net.Uploader.

See also

http://blog.efnx.com


Public Properties
 PropertyDefined by
  isLoaded : Boolean
[read-only] Tells whether all uploads have completed.
MultiUploader
Public Methods
 MethodDefined by
  
MultiUploader(_testing:Boolean = false)
MultiUploader
  
get(entryName:String):*
Retrieves the data collected from an upload operation.
MultiUploader
  
unload(entryName:String):void
Unloads a given resource.
MultiUploader
  
unloadAll():void
Unloads all resources.
MultiUploader
  
upload(byteArray:ByteArray, location:String, entryName:String = "", variables:Object = null):void
Uploads a ByteArray to a given location and stores the data retrieved from that location.
MultiUploader
Events
 EventSummaryDefined by
   When uploads are finished an event will be dispatched which event type is the name of the file that has completed it's upload.MultiUploader
Property detail
isLoadedproperty
isLoaded:Boolean  [read-only]

Tells whether all uploads have completed.

Implementation
    public function get isLoaded():Boolean
Constructor detail
MultiUploader()constructor
public function MultiUploader(_testing:Boolean = false)

Parameters
_testing:Boolean (default = false) — Sets verbose output.
Method detail
get()method
public function get(entryName:String):*

Retrieves the data collected from an upload operation.

Parameters
entryName:String — The name of the upload to retrieve data from.

Returns
*
unload()method 
public function unload(entryName:String):void

Unloads a given resource.

Parameters
entryName:String — Name of resource to unload.
unloadAll()method 
public function unloadAll():void

Unloads all resources.

upload()method 
public function upload(byteArray:ByteArray, location:String, entryName:String = "", variables:Object = null):void

Uploads a ByteArray to a given location and stores the data retrieved from that location. Data can be retrieved from the uploader using the get function.

Parameters
byteArray:ByteArray — A ByteArray containing the encoded file to upload.
 
location:String — A String URL denoting the save path.
 
entryName:String (default = "") — The name under which to store retrieved data.
 
variables:Object (default = null) — The post variables object to send with the file.

See also

get()
flash.net.URLLoader.dataFormat
Event detail
filenameevent 
Event object type: flash.events.Event

When uploads are finished an event will be dispatched which event type is the name of the file that has completed it's upload. For example, if one uploads a file and designates it's entryName as "FileOne" then the event type of it's complete event will be "FileOne."