A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Click button to download a .zip file

  1. #1

    Click button to download a .zip file

    Hi..
    I have a button in my movie that, when clicked, should download a .zip file on my server. I used the getURL command, but that didn't work. Can anyone help me?

    Thanks,
    Ansia

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    on(release){
    getURL("http://www.yoursite.com/zipfile.zip", "_self");
    }

  3. #3
    That didn't work. Isn't there a "get file" command or something for getting files?

  4. #4
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    No, just link to the zip file. It has to be there and you have to use the full path to it, including any folder name it may be in.

    Show the link to it.

  5. #5
    That's what I'm doing. The file is there and I'm linking to the full URL. What happens, is the URL displays, including the file.zip -- and nothing happens. Just a blank page with the URL to the file name showing.

  6. #6
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    What's supposed to happen is a little window to download and save pops up. Like the one we've all seen. Your not getting that?

  7. #7
    no, I'm not --- just a blank page. I wish I could show you the exact URL, but the material is sensitive to my client.

  8. #8
    Boy do I feel like a flippin idiot - I had wwww.etc instead of www.etc in my code. Geesh!!!!!!! It works now. Thanks for your help.

  9. #9
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    You shouldn't get a page at all, just the little popup. That is, if you testing from the movie in an html page.

    Try this, send the link to yourself in an e-mail. When you get it back, click the link from the mail it should open.

    If it isn't, there may be a MIME problem with the server.

    Try this, and see if you get the popup, it'll work the same for a fla as a zip;

    http://www.learningflashmx.com/fla/attachmovie.fla

  10. #10
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Lol, Ok.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center