Pb with FileReference.download() function

Hi,
Can anyone tell me why this simple code makes the navigators
crash ?
IE and Firefox just disappear from my windows task bar...
private var fileRef:FileReference ;
private function file_download():void{
var request:URLRequest = new URLRequest();
request.url = "
http://www.logitweb.com/download/file.txt"
fileRef=new FileReference();
fileRef.download(request,"myFile.txt");
You can try the SWF at this address :
http://www.logitweb.com/download/
Thanks
Jean

Hi,
Can anyone tell me why this simple code makes the navigators
crash ?
IE and Firefox just disappear from my windows task bar...
private var fileRef:FileReference ;
private function file_download():void{
var request:URLRequest = new URLRequest();
request.url = "
http://www.logitweb.com/download/file.txt"
fileRef=new FileReference();
fileRef.download(request,"myFile.txt");
You can try the SWF at this address :
http://www.logitweb.com/download/
Thanks
Jean

Similar Messages

  • FileReference#download() and filename question

    On the server side I set a HTTP header as
    Content-Disposition: attachment; filename=myfilename.txt
    Is it possible to get this information in Flex client? The FileReference#download() function gives a possibility for a name to set on the file browser, but I can't figure out how to get it from the server. By default, the function uses the remote URL.
    Any ideas?
    Thanks.

    Lawcats please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to install the Adobe Creative applications included with your membership.

  • HR Renewal: Client infotype with upload/download file functionality

    Hi Gurus,
    I am writing to you today cuz a client of mine asked me to adapt one of their client-specific infotype for HR Renewal. Now the old-legacy infotype was developed by someone else so I am just to adapt the functionality for decoupled infotype framework and front-end.
    The infotype has no subtype and record from 01.01.1800 to 31.12.9999 with a table-control listing all the pdf (or other format) file for a particular employee (such has income tax statement; SEPA bank account sheet; ID card etc... any kind of personal document relevant to employees). (that data is listed from a client Z table when opening the infotype; e.g. there is not sub-strucutrue in the pnnnn to  represent that information).
    upload, download and open file functionality is done via the infotype old-framework screen 2000 by some custom code merely replicated what is available by cl_gui_services.
    File are stored directly on the SAP system not using the GOS option;
    back-end stuff is more or less done and working at least I can do pretty much what I want in puit_ui tcode; read;modify... off course no file upload there
    front-end is another story; I have managed the FPM views for the infotype (dataset; biz card, etc) and also I have managed to list the existing file in the ATS list.
    However What I need still to do is to be able to upload from NWBC files to the back end system; and also download or open them. this seems to be a little harder than expected.
    I am now doubting if I should rather do a P&F FPM form based or if I can achieve what it is suppose to do? or maybe I should go back to the client and talk him through changing that infotype architecture? using subtype instead of a connection to a Z table and GOS services to store employee files seems way easier for me; but still I am facing the upload/download functional which I dont really no how to wrap around the FPM either it is ATS or GL2. I have checked indian-specific infotype 3743 has this uploading functionality (GOS) but no corresponding FPM I could inspire myself on!
    Also, not sure if I am missing something but when I try to change the value of one the field on the infotype pnnnn structure (that infty actually has one checkbox field) and save I end up with a dump because to BOL model does not find my entity (lo_entity). it s not the first infotype I am enabling for HR Renewal and I never had this error before.. I wonder what I am missing....
    Would you gurus oriente me a lil on how I should best proceed? should I rather use P&F? Your help and advise would greatly be appreciated!
    Thanks.

    Hello:
    So after some thinking through:
    - upload and download are handler by the FPM ATS feeder (client copy with enhanced options into to manage event method).
    - lo_entity without pointer causing dump occurred because I had inconsistently used the set automatic tag option into the FPM configuration floorplan editor.
    - PAOC_ASR_PERSONAL_FILE would be my recommendation but client want to follow on its own mini-dev for personal file hosting.
    Thank you gurus!

  • What is going on with the scroll function? It doesn't seem to work in any applications, now that I downloaded the new Mountain Lion?

    What is going on with the scroll function. It doesn't seem to work ever since I downloaded Mountain Lion.

    I've noticed this too...when I'm in Safari, scrolling is a bit jerky and sometimes it stops even though I'm still scrolling...my fingers go right off the trackpad.  I just downloaded the new updates onto my brand new macbook air- had to do it manually as "power nap" doesn't work, even after the SMC reset.  Lamesauce.

  • Why doesn't AS3 FileReference Download Work in IE/FF (Works fine in Chrome)

    I am generating an Excel file with Java on the back-end and it seems to work just fine in Chrome but for whatever reason it doesn't in FF/IE. I have the very latest of Flash in each browser listed from this site: http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
    I'm sending XML to the server, it is generating the Excel and sending it to the Flash. I'm performing the export by doing the following:
    private var _fileRef:FileReference;
    private function exportReport(e:MouseEvent):void
        _fileRef = new FileReference();
        _fileRef.addEventListener(Event.COMPLETE, excelExportCompleteHandler);
        _fileRef.download(new URLRequest("exportReport"), "report.xlsx");
        function excelExportCompleteHandler(e:Event):void {
            trace('complete');
    There are no error messages from Java/Flash. The browse popup comes up and I save the file the same in IE/FF as I do in Chrome. the trace('complete') is executed every time in every browser but the file only shows up when using Chrome.
    I also searched my filesystem and found temporary internet file shortcuts with the name of the file I was trying to download so it's as if it started the download but didn't finish it for some reason. The location of those files is AppData\Roaming\Microsoft\Windows\Recent Items

    Definitely not a timeout, it takes < 5 seconds for the web service call to finish
    I can also copy and paste the request url with data into the browser and it will successfully download the report just through the browser which made me realize I could use javascript as a non-ideal workaround solution to this problem.
    I would still love to know why it was failing and if anyone has any ideas that would be great but for anyone else with the same issue as me here is the workaround I used:
    as3 code (I used URLVariables to encode the data because trying encodeURI or encodeURIComponent didn't encode ' or " which would cause errors when doing the ExternalInterface.call()
    var reportData:String = getReportXML().toString();
    var variables:URLVariables = new URLVariables();
    variables.q = reportData;
    //Substring at 2 to trim off the 'q=' portion
    reportData = variables.toString().substring(2);
    ExternalInterface.call("function() { return downloadExcelReport('"+reportData+"')}");
    javascript code (I used a hidden form because I needed to be able to perform a POST because the xml data I was passing was too large for a GET)
    <script type="text/javascript">
        function downloadExcelReport(reportData) {
            reportData = decodeURIComponent(reportData);
            window.open("about:blank", "newWindow");
            document.getElementById("reportData").value = reportData;
            document.getElementById("reportForm").submit();
    </script>
    <form id="reportForm" method="post" target="newWindow" action="<%=SERVER_PATH%>excelReport">
        <input type="hidden" name="solutionReportXml" id="reportData" value="">
    </form>

  • Btn to Cancel FileReference download

    Hi, I can't figure out how to make a button cancel downloads
    started using FileReference. Below is the code that is used to
    start the download. If you could let me know the right code to put
    in the on(release) of my cancel button that would be great. I've
    spent so much time trying to figure this out, and I just can't get
    it. Thanks!
    import flash.net.FileReference;
    var listener
    bject = new Object();
    listener.onCancel = function(file:FileReference):Void {
    //the code for what to do when user hits cancel on dialogue
    box
    listener.onOpen = function(file:FileReference):Void {
    //etc etc these listeners go on
    };

    Sorry that I was not able to successfully provide an answer.
    As I said I use Windows, but I would have expected the functionality to be very similar with Linux.
    I am having difficulty understanding
    *exactly what it is that you are attempting to do,
    *and why you consider Firefox's behaviour to be anything other than as expected.
    Someone else may understand better, and it may help if you give a specific example.
    * explain what sort of material you are trying to download, eg computer programmes, video etc
    * what site you are using, with the name and the correct link
    * an example file you tried, again with name and link <br/>(it would help if you give examples of free publicly accessible sites and files)
    # explain what you did and what happened
    # explain what the expected behaviour was
    # explain why you think something is wrong
    There is always the possibility using specialist download managers but that is outside the scope of this forum.
    '''Did you read the information shown by the blue clickable links in my first message ?'''
    * specifically https://support.mozilla.com/en-US/kb/Downloads%20window#w_what-can-i-do-with-the-downloads-window
    Part of which is
    ''"Remove the file's entry: If you do not wish to keep a record of a particular download, simply right-click the file entry, then select Remove From List (This will remove the entry from the list; it will not delete the file itself). "''
    That also lists and explains: Pause, Cancel, Open the file, Open the file's folder, and Retry a download.

  • Downloading Images - FileReference download error 2176

    Hi everyone.
    I'm trying to download some images but getting this error "Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press."
    The trouble is, it IS running off a button click - just indirectly.
    I'm trying to design a good architecture for my program, so have the Application, a dataStore and some value objects, for example, a pricebook containing and array of products, each called PricebookVO and ProductVO.
    What I'm doing when the application loads is doing a database query with another API that gives me a pricebook and all of its products, and i populate the value objects.  Relationship is obviously  PricebookVO -< ProductVO.  I wanted to download the images for the products at the same time but it won't let me due to the error above, so what I have now is a button bar and when the user clicks a button an event is bubbled up to the Application which changes the page, but what also happens is it checks to see if the user has clicked the Products button and if it has, it tells the PricebookVO to tell each of its ProductVO's to download their image (from a URL that was saved from the query.
    Presumably the error im getting now is because the download is not directly summoned by a user event but by an indirect event (ie user pushes button, code calls code which tries to download the file).  How can I download the images and still maintain my architecture?
    Also, am I getting confused?  I want to get a file from a server and save them in an mx.controls.Image on the ProductVO record, do I use the FileReference.Download method or something else?  Because on further inspection it looks as though the download method is for downloading something to the local machine with a download dialog box?
    Thanks
    Steven

    Thanks for all your help Peter, its much appreciated.  I hate that useless feeling when learning a new language!
    So anyway, I was initially using image.source but thought to myself that's probably referencing the image from its server source which might be quite a hog, so wanted to store it myself, but if you say image.source does indeed handle the image itself and not just reference it from the source, thats good.
    My only remaining query is regarding how it is displaying.  I have a tileList which is rendering the images and it does work, however the images are loading on screen as I watch them, and if I scroll I then have to wait again whilst the images load.  If I then scroll back to the previuos part of the screen, where the images had previously already loaded, they have disappeared again and I once again have to wait for them to load.
    I know normally you'd embed them, but dont see how thats possible with the way I'm having to load them from the server?
    I have a method in my datastore like this:
    public function getProds():ArrayCollection{
    var imgs : ArrayCollection = new ArrayCollection();
    for each (var pb : PricebookVO in pricebooks){
      pb.getProdCount();
      for each (var p2 : ProductVO in pb.products){
       imgs.addItem(p2);
    return imgs;
    and in my products page:
    <mx:TileList>
      <mx:width>100%</mx:width>
      <mx:height>100%</mx:height>
      <mx:itemRenderer>components.Thumbnail</mx:itemRenderer>
      <mx:dataProvider>{DataStore.getInstance().getProds()}</mx:dataProvider>
    </mx:TileList>
    components.Thumbmail is
    <mx:Image>
      <mx:width>100</mx:width>
      <mx:height>75</mx:height>
      <mx:source>{this.data.image.source}</mx:source>
      <mx:toolTip>{this.data.prodCode}</mx:toolTip>
    </mx:Image>
    So, how can I stop the tilelist from having to constantly reload the images?  I get the impression that the solution might end up using a lot of memory to store the images somehow, so advice on the best way to do this is appreciated.
    Thanks!

  • Filereference download issue on some browsers

    Hi, Im having a filereference download issue which is turning
    out to be rather elusive. I have it working great on my comp in ie,
    however on my comp with firefox, or with any browser on my father's
    computer we get the file browser popup and when we hit "save"
    everything SEEMS to go OK but the file doesnt get downloaded. Weve
    checked and re-installed all the browsers / flash plugins, and
    nothing has changed. No error handelers get tripped, and Ive
    checked the scope issue. The following is the code Im using,
    published to flash 8 AS 2.
    import flash.net.FileReference;
    _root.vars.fileRef = new FileReference();
    _root.functions.getit = function(){
    _root.vars.fileRef.download("
    http://www.myURL.com/myList.csv",
    "myList.csv")
    Thanks for your help.

    an absolute path would be something like:
    www.yourdomain.com/subdirectory/yourfile.ext
    (looking at the op's original message, i see he used an
    http:// prefix which isn't going to work in any
    case.)
    a relative path from yourdomain's main directory would be:
    subdirectory/yourfile.ext

  • Can't download the latest iTunes. A window pops up... The update could not be verified. It may have been corrupted or tampered with during downloading. The update will be downloaded and checked again the next time that Software Update runs. No iTunes now.

    Can't download the latest iTunes. A window pops up... The update could not be verified. It may have been corrupted or tampered with during downloading. The update will be downloaded and checked again the next time that Software Update runs.
    Now, iTunes won't launch and can't be updated. Please help.
    If I have lost my music collection I will be switching platforms ASAP. It is insane that Apple has updates seemingly every day for their products.

    I was in your same situation with 14 downloads and 14 attempts. 
    You have to make sure that your Mac is booting into 64 bit mode.  You can make sure of this by going into System Preferences and scrolling down to 'Software' and making sure that you are booding with 64 bit Kexts. 
    If not, restart while holding the 6 and 4 keys down until you see the spinning gear wheel and try installng again. 
    BUT, what I also did was to go into Applications, click on the Lion installer, Get Info, and give yourself custom priviliges to Read And Write. 
    I did this simultaneously, and I don't know what function did it, but it worked for me, with no further downloads of the installer. 
    Good luck! 

  • In Numbers, how do I lock in the date and time data when an IF/THEN formula is used with the "NOW" function?

    In Numbers, how do I lock in the date and time data when an IF/THEN formula is used with the "NOW" function?
    =IF(I127,NOW()," ")
    I127 equals a check box. The formula retuns a value of the current date and time when a check is placed in the box. How does one lock that date and time so that it cannot be changed?

    I don't think it is possible to lock in the date and time using a formula. You could put NOW() in a cell, copy, and Edit Paste Formula Results where you want the result.
    Or if you are "time stamping" a lot, you may find this Automator Service (Dropbox download) helpful. It puts a "Today" function (actually it should be named "Now" because it includes both date and time) in your Services menu like this:
    Just doubleclick the .workflow package to install it. You may have to click "download anyway" in System Preferences > Privacy & Security.
    If you want you can assign the service a keyboard shortcut in System Preferences here:
    SG

  • The download function is not working....!! When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads...

    The download function is not working....!! I don't use any add-ons like idm or dap,etc.... When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads... I am currently using Firefox 7.0.1....... Nothing is being downloaded, and I am forced to use IE8 for everything... I even tried re-installing, but doesn't help... I am using Windows 7

    TonyE is correct the plugin version comes with Adobe's Reader X.
    The failure in communication is two parted:
    1. Reader X is not Acrobat (Mozilla Plugin Checker)
    2. Acrobat is not mentioned in the Reader X download Page (Adobe)
    therefore confused clients.
    For readers '''CAUTION''' check the minimum requirements for Reader X.
    Here: [http://www.adobe.com/products/reader/tech-specs.html Adobe's Reader X requirements link]
    Do not waste the time to download (80+MB and Site is Slow) if your machine does not have the resources to execute it. ie. '''aging''' Hardware
    Unfortunately the Adobe DLM only checks the requirements after it has
    downloaded BEFORE the install occurs.
    This is '''very expensive''' for both the sender and receiver
    It might be why they called it READER X and READER 9 will not sense an update...
    Another Software company pushing Hardware antiquity...

  • Lion install errors out with msg that software could not be verified, it may be corrupted or tampered with during download. Re-downloads produced the same error.

    Tried a number of downloads of Lion and none of them would get by the error in the subject line. Help pls?

    I was in your same situation with 14 downloads and 14 attempts. 
    You have to make sure that your Mac is booting into 64 bit mode.  You can make sure of this by going into System Preferences and scrolling down to 'Software' and making sure that you are booding with 64 bit Kexts. 
    If not, restart while holding the 6 and 4 keys down until you see the spinning gear wheel and try installng again. 
    BUT, what I also did was to go into Applications, click on the Lion installer, Get Info, and give yourself custom priviliges to Read And Write. 
    I did this simultaneously, and I don't know what function did it, but it worked for me, with no further downloads of the installer. 
    Good luck! 

  • PO Upload and Download functionality

    Hello All,
    We are using SRM_SERVER 5, Version 4, SP 5 and have configured Standalone scenairo.
    Need to know if Download and Uplaod functionality is applicable for Purchase orders with in SRM version 4. These options are available with Contracts and Bid invitations but not for Purchase orders.
    Any help will be appreciated.
    Regards,
    Upendra.

    Hi Upendra,
    You can do a downgrade of the upload/download functionality from SRM 5. We did it at our client and works perfectly.
    Kind Regards,
    Tom

  • I need to plot the Least Squares Regression Line (not just calculate it with the LINEST function).  How?

    I need to plot the Least Squares Regression Line (not just calculate its values with the LINEST function).  Can anyone advise me on how to graph this line?

      Grapher.app in OS X Utilities is excellent for that : entering data from Numbers Excel etc. into a Grapher "Point Set", plotting all your data, computing and plotting a regression curve linear or exponential or polynomial.
      Unfortunately there is not a single word about point sets and regression in the Grapher Help.
    So, suggest you download (free) "Instruction for Use - Grapher on web site
    http://y.barois.free.fr/grapher/Documentation.html
    and go to page 31 to 37, "Initiation > Lesson 6 : Treating a point set (Regression curve), and also page 68, "Appendix 1. Points sets : from speadsheets to Grapher".
      If you try Grapher's regression curves, please tell us about the manual above : useful or not, too easy or difficult, readable or not etc.
      Thank you.
    YB24
    PS. Documentation about Grapher is also here : Google "Apple Grapher" > http://en.wikipedia.org/wiki/Grapher > Article > Talk > Grapher 1.1 to 2.3 (French and English) (11th september 2012)

  • Help with this cool function: =SUMIF(Table 1::$Month, COLUMN()−1, $Cost)

    Hello,
    I am a novice with respect to spreadsheet functions and needed a a cashflow spreadsheet.  I found this one (Download Cashflow Tracker for Numbers (iWork 09).) which is perfect but the author, I suspect, has not updated his website in years.  I attempted contacting him and received no reply.
    I receive an error with the following function:
    =SUMIF(Table 1::$Month, COLUMN()−1, $Cost)
    This occurs when I enter a date in the expense or income table.  Entering the date is required to make the spreadsheet work but when I do I receive an error that a number is expected when a date is entered.
    Can anyone give me some advice?  I would really like to use this spreadsheet.
    Thanks!
    Steve

    What I have found the simplest approach has been:
    1. Cut the Summary by Category table and paste it into the Transaction sheet, giving something like this (after rearranging renaming, etc, as desired):
    2. Make sure the links between the two table are still working, make their appearance the way you like, then duplicate that sheet for the other months.  Each sheet will then have its separate set of two interconnected tables.
    3. Copy paste one of the Summary tables back to the Summary sheet, rename it as desired, and set it up with formulas referencing the tables in the monthly sheets you have set up, something like this:
    If you want your summary by month you would set up 12 columns in the main 'Summary by Category' table, with each column referencing a different sheet.  Your Budget could be a row above each Actual figure, if you like, with difference in a row below that.
    This approach keeps the formulas simple and avoids having to set up fancy SUMIFS extracting data for each month from one big Transaction table.
    SG

Maybe you are looking for