Robinsonx6
asked on
URGENT : The class 'flash.net.FileReference' could not be loaded.
we are using Flash MX PRO 2004 to do a file upload to a PHP page
we are recieving the following error in the activescript
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 27: The class 'flash.net.FileReference' could not be loaded.
listener.onOpen = function(selectedFile:File Reference) :Void {
have we missed something or do we need to import the class into FlashMX project?
This is our code snippet for the actionscript
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(selectedFile:File Reference) :Void {
statusArea.text += "Attempting to upload " + selectedFile.name + "\n";
selectedFile.upload("http://www.helpexamples.com/flash/file_io/uploadFile.php");
};
we are recieving the following error in the activescript
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 27: The class 'flash.net.FileReference' could not be loaded.
listener.onOpen = function(selectedFile:File
have we missed something or do we need to import the class into FlashMX project?
This is our code snippet for the actionscript
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(selectedFile:File
statusArea.text += "Attempting to upload " + selectedFile.name + "\n";
selectedFile.upload("http://www.helpexamples.com/flash/file_io/uploadFile.php");
};
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER