[flexcoders] Re: How do I read Response after FileReference uploads a file?

2007-03-30 Thread ben.clinkinbeard
Holy hell, thanks Geoffrey. When was this added? With the initial
release of FP9? I posted here several months ago expressing my
disbelief that this was not supported and got no feedback to the contrary.

Thanks again,
Ben


--- In flexcoders@yahoogroups.com, Geoffrey Williams [EMAIL PROTECTED] 
wrote:

 Just to note, this functionality was only recently added to FP9 and
was not
 available in previous versions of the player.
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Merrill, Jason
 Sent: Friday, March 30, 2007 11:43 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How do I read Response after FileReference
uploads
 a file?
 
  
 
 Stupid Outlook hotkeys. What I meant to say was:
 
  
 
 In Flash 8 AS2 it was just:
 
  
 
 listener_obj.onComplete = function(file:FileReference):Void { }
 
  
 
 Where file was the complete file object on the result which had all
the info
 you needed.  Should be something similar in AS3.
 
  
 
 Jason Merrill 
 Bank of America  
 GTO Learning  Leadership Development 
 eTools  Multimedia Team 
 
  
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of thegators_2002
 Sent: Friday, March 30, 2007 11:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I read Response after FileReference
uploads a
 file?
 
 I am trying to use FileReference to upload a file from the user side
 to a web page and read the response(xml) that the server returns. I
 can't figure out how to get the response, however. It doesn't seem to
 be included in the FileReference object.
 
 Is there a way to read the response coming back after a file upload,
 or is this halted by design?





[flexcoders] Re: How do I read Response after FileReference uploads a file?

2007-03-30 Thread thegators_2002
Great!  Thanks for all the responses!  It works like a charm.  The
DataEvent object coming back has both a text and a data property that
hold the XML written by Response.Write in the .aspx page.  That's
perfect!  My user can upload an XML file from their local machine, it
goes to my web page and gets parsed, and then the XML is sent to my app.

As a side note, if you cannot find DataEvent.UPLOAD_COMPLETE_DATA,
upgrade to the 2.01 version of FlexBuilder.

Pete



--- In flexcoders@yahoogroups.com, thegators_2002
[EMAIL PROTECTED] wrote:

 I am trying to use FileReference to upload a file from the user side
 to a web page and read the response(xml) that the server returns.  I
 can't figure out how to get the response, however.  It doesn't seem to
 be included in the FileReference object.
 
 Is there a way to read the response coming back after a file upload,
 or is this halted by design?