dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: download link

  1. #1

    download link

    how do i make a link to another local file, in order
    to download, instead of linking to an URL?

    i've tried just typing in the file name in
    the link field in the property inspector.

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    63
    Try the following ;-
    Code:
    on(release) {
    	getURL(URL);
    }
    :: Have Fun ::

    Nimmit

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Location
    sacramento
    Posts
    3
    Hi,
    I have a file called chico.html in the same directory as my flash file.

    When I write this:

    on(release) {
    getURL(URL);
    }

    and the i guess I am suppose to replace the file name with the URL so I actually write:


    on(release) {
    getURL(chico.html);
    }

    then when I test the movie it says it cannot find the file. Can anyone tell me what I am doing wrong. I know this has been posted about too much, but I have searched and tried to figure it out and still can't. I've been up all night trying to finish my assignment and can't make this link. any help would be appreciated. thanks.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You have to zip up the file you wish to offer as a download, and point to that file in your getURL...
    code:

    on(release){
    getURL("http://www.yourserver.com/your.zip");
    }


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