Sorry, a little explination is probably needed.
 
The browse methods of FileReference and FileReferenceList are not static.  Therefore you must call them on an instance of one of those two classes.
 
var fileInstance:FileReference = new FileReference();
fileInstance.browse();
 
If it were static, you could call it the way you had it scripted.
 
DP
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller
Sent: Friday, July 14, 2006 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] File Upload

I'm trying to quickly demonstrate the ability to upload a file. Just
need a button with a click action that invokes a file browser in the
user's OS.

Tried this:

<mx:Button label="Upload...." click="FileReferenceList.browse()"/>

Per the docs, which gets a compiler error of "....undefined method
with static type class... "

Any sample code for this kicking around?

thanks! ethan

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to