Getting a file

Hi there!

Well, this time i’m posting a new thread, because i’m having some problems here with a button to download a file. The AS i use is:

 
on (release) {
 getURL("1pegada.zip", "_blank");
}

It should work isn’t it?.. but when i try it on the IE, i can’t download the fla, nothing hapends… is my AS wrong? Is there another AS code to get a file?.. What am i doing wrong? :h:

Thanks in advance…

If you’re using flash 8, you can use the FileReference class versus getURL to download files - this also allows the user to select a location to download the file to on their computer. There is some sample code here:

http://www.justinfront.net/Dnload/

in clip:

on (release) {
 getURL("http://domain/1pegada.zip");
}

or in frame:

clip_instance.onRelease = function() {
 getURL("http://domain/1pegada.zip");
}

:eye: HERE WORK FINE

Well, seems that my issue is resolved… thanks! :slight_smile: