A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to download a file to user's harddisk?

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    8

    Post

    I hope the answer to the following is simple:

    I'm trying to download a simple .txt. file to the user's harddisk out of Flash.
    I made a button with an action that says
    GET URL
    address.com/textfile.txt

    but:

    The textfile opens in a browser-window! I want the textfile to be downloaded to the user's harddisk. What am I doing wrong?
    I tried to zip (self-extract) the textfile (for zipped files won't open in a browser-window), but then my textfile was 88K. (original 8K), so that isn't the
    way.

    Could you help me out?
    Thanks very much in advance!

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    10

    Question

    Try saving the file as .doc
    But as far as I knoew the .txt file should have downloaded??

  3. #3
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Cool

    I would agree using the doc ext. should work. But who knows. The only sure fire way I can think of would be to zip it. Regards, Bill

    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000100.swf" quality=high WIDTH=375 HEIGHT=75 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

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