Adobe Flex

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentAdobe Flex

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old July 11th, 2011, 11:52 AM
bon_t bon_t is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Posts: 25 bon_t User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 51 m 26 sec
Reputation Power: 0
How to access HTTP status code for FileReference download

Hi All,

I am using Flex 4, ActionScript 3.

My frontend client needs to call a URL that will do the following:
1. Produce a zip file containing grammar files that are previously generated.
2. Create an entry in this zip file for a prompts list file.
3. Stream this zip file to the client.

Also, ff the grammar files have not been previously generated, the middleware sends back a 404 HTTP status code.

I've used the FileReference upload method before. For the upload, I can explicitly call the FileReference browse method to bring up the operating system's "Select file to upload" dialog box. The upload also dispatches two very useful events: httpStatus and httpResponseStatus.

Now for my current task of doing the download, I've noticed two differences from the upload:
1. The browse method is incorporated into the download method to automatically bring up the operating system's "Select location for download" dialog box.
2. The httpStatus and httpResponseStatus events do not exist for download.

Why are there these differences for the download?

I briefly looked at the URLLoader class. This class does dispatch the httpStatus and httpResponseStatus events. However, there is no explicit or implicit browse method.

Can you please let me know what I can do to fulfill all of my requirements for this task?

Thanks,
Bonnie & clyde

Last edited by _Kenny_Programing_ : July 20th, 2011 at 04:51 AM.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentAdobe Flex > How to access HTTP status code for FileReference download


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap