Packageorg.restfulx.utils
Classpublic class RxFileReference

Allows Flash file references to be attached to models. Requires something like attachment_fu or paperclip on the server-side if you are using remote service provider.


Example
For attachment_fu use this:
    var ref:RxFileReference = new RxFileReference;
   

For paperclip use this:
    var ref:RxFileReference = new RxFileReference("avatar")
   

This will match has_file_attachment :avatar in your Ruby model.

If you pick a different name adjust the argument to constructor accordintly.



Public Properties
 PropertyDefined by
  keyName : String
key name to use (default is "uploaded_data", which is what attachment_fu expects)
RxFileReference
  reference : FileReference
RxFileReference
Public Methods
 MethodDefined by
  
RxFileReference(keyName:String = "uploaded_data", file:FileReference = null)
RxFileReference
Property detail
keyNameproperty
public var keyName:String

key name to use (default is "uploaded_data", which is what attachment_fu expects)

referenceproperty 
public var reference:FileReference
Constructor detail
RxFileReference()constructor
public function RxFileReference(keyName:String = "uploaded_data", file:FileReference = null)

Parameters
keyName:String (default = "uploaded_data") — keyname to use default "uploaded_data"
 
file:FileReference (default = null)