I need to pass a variable to the php script that is called
from the upload() function of FileReference
this is the code without passing the variable:
// When the user selects a file, the onSelect() method is
// passed a reference to the FileReference object.
listener.onSelect = function(selectedFile:FileReference):Void
//clean statusArea and details area
statusArea.text = details.text="";
// Flash is attempting to upload the image.
statusArea.text = "Attempting to upload
// Upload the file to the PHP script on the server.