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

2007-03-30 Thread Merrill, Jason
It shouldn't be.  In Flash 8/AS2 it was just:
 
 

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?



 



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

2007-03-30 Thread Grant Davies
you can't... file reference does not return the response... (yes I know
that's dumb, I thought the same thing)
 
What I had to do is write the response to the session, and after file
reference returns success/fail I go back and request the session
variable as an XML response...
 
Grant
 
 
...
 b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 

 

 



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?



 
attachment: small.jpg


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

2007-03-30 Thread Merrill, Jason
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?



 



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

2007-03-30 Thread Geoffrey Williams
fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA,
eventHandler);

 

The DataEvent dispatched will have a data property with the data you are
looking for.

 

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?

 



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

2007-03-30 Thread Grant Davies
Thats a flash 9/flex only feature right ?
 
Flash 8/as2 doesn't have a data property..
 
g.
 
 
...
 b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey Williams
Sent: Friday, March 30, 2007 11:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I read Response after FileReference
uploads a file?



fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA,
eventHandler);

The DataEvent dispatched will have a data property with the data you are
looking for.

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?

 
attachment: small.jpg


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

2007-03-30 Thread Geoffrey Williams
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?

 



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

2007-03-30 Thread Paul J DeCoursey
I did something similar.  Before the upload I get a token, I pass that 
token on the querystring of the upload.  Once complete I use that token 
to get info about the upload.  I also use this token for authentication 
purposes.  We have had a lot of trouble with file uploads not sharing 
sessions with all of the other requests in the app.  Another advantage 
to the token is we have a queue of files that the user is uploading from 
in the app.  With the token we don't have to retrieve the response data 
right away, or it can be ignored altogether.  We also expire the tokens 
after a certain period of time because we do use them for auth as well.  
Anyway, it's probably overkill for your project, but I thought I'd share.

Paul


Grant Davies wrote:
 you can't... file reference does not return the response... (yes I know
 that's dumb, I thought the same thing)
  
 What I had to do is write the response to the session, and after file
 reference returns success/fail I go back and request the session
 variable as an XML response...
  
 Grant
  
  
 ...
   
 b l u e t u b e i n t e r a c t i v e
 
 .: The glue between creative and engineering
 .: grant davies
 .: 404.428.6839 (c)
 .: 708-983-1577 (F)
   
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 

  

  

 

 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?