Hello,
Any body know or have seen this before ?
Thanks Adam

I have used the file reference to upload files and report in a dialog box if
successful.

This works fine when tested on IE on windows, but although the file
uploads ok from a Mac it does not run the onComplete command and so
the user does not think it has uploaded , it just says Uploading and goes
not further (although the file has uploaded)

Is this a mac player issue ? I have tried on Firefox and Safari

Code below:

//Allow this domain
System.security.allowDomain("http://meanwhile.luton.ac.uk/";);
import flash.net.FileReference;
// The listener object listens for FileReference events.
var listener:Object = new Object();

// When the user selects a file, the onSelect() method is called, and
// passed a reference to the FileReference object.
listener.onSelect = function(selectedFile:FileReference):Void {
//clean statusArea and details area
gui.statusArea.text = details.text = ""
// Flash is attempting to upload the image.
gui.statusArea.text += "Attempting to upload JPEG" + selectedFile.name
+ "\n";
// Upload the file to the PHP script on the server.
selectedFile.upload("upload.php");
removeMovieClip("newTip");
};

// the file is starting to upload.
listener.onOpen = function(selectedFile:FileReference):Void {
gui.statusArea.text += "Uploading " + selectedFile.name + "\n";
};

// the file has uploaded
listener.onComplete = function(selectedFile:FileReference):Void {
// Notify the user that Flash is starting to download the image.
gui.statusArea.text += "Upload finished.\nThanks " + selectedFile.name
+ " now online\n";

};
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to