Script for a download button

(-: Hi!!!

I’m designing a personal web page in flash mx where i’m planning to share work related documentation, and i need tu put a download button but i don’t know the script that i should put in the button.

Can you help me please!!!

I would greatly appreciate.

Thanx in advance.:q:

on (release) {
getURL(“yourFile.zip”, “_self”);
}

Try that.

on (release) {
getURL(“yourFile.zip”, “_self”);
}

THAT ANSWER IS WRONG!!!
WRONG! WRONG! WRONG!!!

on (release) {
getURL(“yourFile.zip”, “_blank”);
}
is the correct answer.

Ummm… riiiiiight.

Gotcha!

AAAAAHHH HAAAA…
I knew you weren’t perfect!!!
OH you come close But

NOOOOOOOOOO…

Ok guys!!! thanks a lot I’ll try both and see wich one works!!!

Try mine and see if it works man.

I have never tried it, but as far as I know it just opens up a download window.

So I want to know if my method works.

I don’t claim it does since I have never done it and so I said TRY doing that, but I just wanna know.

ok guys I tried both and in both cases it says file not found.
does the file has to be a .zip or could it be any file???

What i’m looking for is that my co-workers can download documentation just like you do when you download anything from the net.

You put the wrong URL to the file.

where it says yourFile.zip that is assuming you have the file in the same directory as the flash file.

Ok!!!
this time it worked using both version, i tried it with a picture and i was just able to see it in my explorer but wasn’t asked where i wanted save… i’m I doing it right???

An image will open up in the browser since that is its default program.

The viewer will have to right click and save as.

Or you can put the image in a .zip file.

AND HA!!! MY METHOD WORKED TOO!!! TAKE THAT RYNOE!!!

Ok!!! guys!!!

i think i got it now, thanks for all your help

and don’t fight you both are really good!!!

good weekend!!!

peace.!!!

No problem man :slight_smile:

:trout: take that Rynoe

:geek:

oops!! one more thing

whats the script for the progress of a loading bar???

There is a tutorial for that…

http://www.kirupa.com/developer/mx/percentagepreloader.asp

Ok thanx!!!

i’ll check it later man!!!

got to sleep now.

peace.

Goodnight.

Yea I know Itested it and actually _self is the way to go on a zip because that doesn’t mess with the window anyway

:beam:

Now I am wrong AND I smell like fish