-
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.
-
not sure, just a thought:
file:///C:/Documents%20and%20Settings/blabla.zip
or similar...
/Donleavy
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|