Solved

URGENT : The class 'flash.net.FileReference' could not be loaded.

Posted on 2006-07-05
2
209 Views
Last Modified: 2012-06-21
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:FileReference):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:FileReference):Void {
statusArea.text += "Attempting to upload " + selectedFile.name + "\n";
selectedFile.upload("http://www.helpexamples.com/flash/file_io/uploadFile.php");
};
0
Comment
Question by:Robinsonx6
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 17042412
Hi,

'flash.net.FileReference'  comes with Flash 8 not with Flash MX pro 2004
You need Flash 8 to compile ur code..

Rgds
Aneesh
0
 
LVL 2

Author Comment

by:Robinsonx6
ID: 17043813
thanks for the answer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now