Here is one way to do this. The receiving script or cgi will find the
posted fields in the Fields collection of the Request object.  The
function below is called after the fileRef.browse() method and after the
user selected a file from the file dialog.

private function selectHandler(event : Event) : void
{
       var params:URLVariables = new URLVariables();
        params.VAR1 = "Some Value";
        params.VAR2 = "Another Value";
        var request:URLRequest = new URLRequest("serverside_script"); 
//asp, cfm, php, pl....
        request.method = URLRequestMethod.POST;
        request.data = params;
        fileRef.upload(request);
}


--- In flexcoders@yahoogroups.com, "jd_lingwai" <[EMAIL PROTECTED]> wrote:
>
> I noticed in flex it allows you to pass extra variables to the post
> request.
> Does anyone know how to name the new variables?
>


Reply via email to