Upload with other values using fileReference

i posted this in the flash 8 forum but thought i might get response here

so the problem im having is using fileReference.
i already have a form set up in asp to upload images and a discription.
now i want to move the form into flash to keep the whole app together rather than a pop up html page asking you to browse your file and upload it.

ive found a few examples but dont understand them…or how i can send the rest of the form data that goes with my upload.

i have 3 values that need to come from the form
directoryName=""
imageText=""
then file= browsed file

so far i found somthing like this in the action script help files:


          [LEFT]import flash.net.FileReference;
var allTypes:Array = new Array();
var imageTypes:Object = new Object();
imageTypes.description = "Images (*.jpg, *.jpeg)";
imageTypes.extension = "*.jpg; *.jpeg;"
allTypes.push(imageTypes);

var listener:Object = new Object(); 

listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
    if(!file.upload("http://www.website.com/upload.asp")) {
        trace("Upload dialog failed to open.");
  }
}

listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
}

listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
}

listener.onHTTPError = function(file:FileReference):Void {
    trace("onHTTPError: " + file.name);
}

listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
    trace("onSecurityError: " + file.name + " errorString: " + errorString);
}
but.onPress = function(){
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse(allTypes);
}[/LEFT]
  

but dont see how i can add in my extra 2 values to this
when i trace file.name in the fileReference all i get is a name not a full path…

any one know how i could add the extra for data in to this…aside from
http://www.website.com/upload.asp?directoryName=“value”&imageText=“value”
witch i havent tried yet but if its the only way ill have to go with it…

thanks in advance for any help