Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-11-2011, 05:48 PM   PM User | #1
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
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
bon_t is offline   Reply With Quote
Reply

Bookmarks

Tags
actionscript3, filebrowse, filedownload, httpstatus

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:20 PM.


Advertisement
Log in to turn off these ads.