I’m trying to upload a file using ActionScript, which I can do quite easily if I get the file via FileReference.browse(), what I want to do though is get the file after it has been dragged and dropped into the window.
I’ve got the drag and drop working fine, and I can iterate through the files like so:
var dropFiles:Array = e.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
for each (var file:File in dropFiles){
trace(file.url);
But how can I get these files across to FileReference.upload()? Hoping someone can help me out! Thanks!
Darren.
flash.filesystem.fileextendsflash.net.FileReference. So you can do