Hi!
I’m using the following script to let the user upload a file. I would like to send two strings to the php as well. Is there an easy way to implement that in this script?
Hope you all have a great day!!!
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void
{
if(!file.upload(“http://localhost/uploader_script.php”))
{
trace(“Upload dialog failed to open.”);
}
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
btnBrowse_mc.onRelease = function()
{
fileRef.browse(allTypes);
}