A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Download .zip files from .swf on a cd

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    13

    Download .zip files from .swf on a cd

    I'm making a site that will be distributed on cd and needs downloadable .zip files throughout the site. I know if it was to be on a server you'd use 'getURL' - but what about from a cd. (I don't want the user to just copy them off the cd) Does anyone know how to do this or if it's possible?
    Thanks.

  2. #2
    Member
    Join Date
    Oct 2004
    Posts
    48
    not sure, just a thought:

    file:///C:/Documents%20and%20Settings/blabla.zip

    or similar...


    /Donleavy

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Posts
    13
    Yeah, i just had another look at the code after I posted, and tried that - it works, but would just have to assume the user's cd drive is called a certain letter.

  4. #4
    Member
    Join Date
    Nov 2004
    Location
    Athens, Greece
    Posts
    96
    Always use relative paths and never absolute as the users hard drive or Cdrom letter may vary!
    You can use the following action for opening you zip file.

    on (release) {
    getURL("01.zip", "_blank");

    }

    If you zip file is on folder
    on (release) {
    getURL("folder/01.zip", "_blank");

    }

    If you want to go out of the folder the flash is, use ..
    Note that if you are going to use a Flash projector you must use the projectors root for every swf loaded. e.g. flash exe is on the cd, first swf is on folder1 and zip.zip is on folder1/folder2
    on (release) {
    getURL("folder1/folder2/zip.zip", "_blank");//and not "folder2/zip.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