PDA

View Full Version : Problem linking to .zip download



Maroneyi
December 14th, 2006, 04:37 PM
I have a button that is coded to dowload a .zip file on release.

My problem is that when it opens up the blank window, it gives that error message "FILE NOT FOUND" etc.

BUT.....
If you hit reload or put your cursor in the address and hit return, the file downloads no problem whatsoever.

Why is this?

And is there a fix? (It doesn't look very nice)

Maroneyi
December 14th, 2006, 04:38 PM
Wow, nevermind.
It works now.

I just hope that it is consistent.

Cello
December 14th, 2006, 04:40 PM
Try on press instead? I've linked to .zips that way and it seems to work fine. otherwise post your code :)

Oops - cross post! Glad you sorted it.

Maroneyi
December 14th, 2006, 04:41 PM
Again, I am wrong.

Sorry everyone.

It only works if the blank window is open in the background.

So back to my first post, how can I fix this??

So code reads:
download_btn.onPress = function() {
getURL("evaluations.zip", "blank")
}

I have also tried it with onRelease and replaced "evaluations.zip" with "the actual URL to the file.