package{
import flash.display.Sprite;
import flash.net.*;
publicclass Main extends Sprite{
public function Main(){
var fileReference:FileReference = new FileReference( );
var urlRequest:URLRequest = new URLRequest("uploadScript.cgi");
fileReference.upload(urlRequest);
fileReference.upload(urlRequest, "UploadFile");
}
}
}