A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Enabling user to Download.

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    8

    Enabling user to Download.

    Need help, Does anyone know how to enable a user to download a file. I want to allow users on my site to be able to download my C.V., how would I do this.

    Thanks

  2. #2
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    What is CV? The easiest way to allow downloads is to 'ZIP' whatever you want downloaded. This forces the user to save the file.

  3. #3
    Flasher
    Join Date
    Jun 2005
    Posts
    1,365
    Yeah, don't know wtf CV is, but .zip is the best for downloads.

  4. #4
    Give me the name Tink!!!!!!!
    Join Date
    Oct 2005
    Location
    London
    Posts
    60
    or if you have Flash 8 you could use the FileReference object
    Tink

    Give the name username Tink!

    The current user that has this name aint been online for absolutely ages.

    Tinks Blog

  5. #5
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    lol - cv = curriculum vitae

  6. #6
    Junior Member
    Join Date
    Oct 2005
    Posts
    8

    Aloow Download

    lol, Yes, C.V. is curriculam Vitae, Im sure many people have heard of the short version, anyway. Can someone please tell me the actioscript, for allowing the user to dowload a pdf. or a zipped version of the pdf,

    Thanks

  7. #7
    Give me the name Tink!!!!!!!
    Join Date
    Oct 2005
    Location
    London
    Posts
    60
    Code:
    getURL("myFile.zip", "_blank");
    Tink

    Give the name username Tink!

    The current user that has this name aint been online for absolutely ages.

    Tinks Blog

  8. #8
    Junior Member
    Join Date
    Oct 2005
    Posts
    8
    Thanks guys,

    the link works, but it comes up with an error when un zipping the file,

    "an error has occured while expanding the file "file.zip" (Tried to position to before start of file)

    can some one tell me how to resolve this. Thanks

  9. #9
    Member
    Join Date
    Aug 2004
    Location
    Somewere
    Posts
    30
    Hi, Miscellaneous
    On your button insert these lines:

    on (release) {
    getURL("cv.doc");// for a Word document cv.pdf for Acrobat...
    }

    This will open the document on the user screen directly. Make sure that the documents are in the same folder. Hope it helped.

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