?
Solved

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

Posted on 2006-07-05
2
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

718 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