# Mimicking SaveAs rightmenu action - FileReference.download() or PHP

**URL:** <https://forum.kirupa.com/t/mimicking-saveas-rightmenu-action-filereference-download-or-php/248460>\
**Category:** Uncategorized\
**Created:** [January 8, 2008, 12:44pm UTC](https://forum.kirupa.com/t/mimicking-saveas-rightmenu-action-filereference-download-or-php/248460 "2008-01-08T12:44:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovapaglia](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@giovapaglia](https://forum.kirupa.com/u/giovapaglia)\
**Post date:** [January 8, 2008, 12:44pm UTC](https://forum.kirupa.com/t/mimicking-saveas-rightmenu-action-filereference-download-or-php/248460/1 "2008-01-08T12:44:40Z")

</div>

A client asked me why it’s not possible to do a “Save as” action  
in it’s “brand new” “under construction” Flash website.  
I used to make a simple php page to download files from a website…  
never needed to do it from an swf file but after a few tests…

1. I call an external php

- if I call it in a “\_blank” window the popup is probably (often:sigh:) stopped by some toolbar or limitation in scripts execution, when the popup isn’t stopped the download works fine :}(download starts and it’s possible to monitor progression in the downloads\_browser\_window) but it remains an opened php white page:sigh:
- if I call it in “\_self” 🙂 the download works but I cannot see the progression of it in the downloads\_browser\_window :h:

1. I use FileReference Class

- the download works 🙂 and I’m able to monitor download events from inside the swf file:thumb: (by FileReference event objects) but… :shifty: the client say me that he is expecting to see the download progression in the download\_browser\_window instead of a progression bar inside the swf\_webpage where he started the download… :bored:

So  
How can I

- launch the download of a file from actionscript  
AND
- see the progression in the download\_browser\_window

without asking the user to change his popup settings for the website…

The client is really upset because he wasn’t so sure in using Flash  
and I pushed him in this direction…😟  
now he is complaining for this “Save As” thing, for Search Engine Related Problems…  
:upset:

Any help is really, really appreciated  
thanks  
Jo
