PDA

View Full Version : Get url - Should I use for link mp3 files?


1ok
03-04-2004, 05:13 PM
Hi everyone,

Here I come with a very simple question I can´t figure it out.

I have 3 buttons on the stage, and 2 of them work perfectly, but one of them don´t.

The AS is:


_root.xbtn_baixar.onRelease = function() {
getURL("http://www.rraurl.com/sets/buga_01.mp3", "_blank");
};



If I change the extension to .htm the button starts to work.
What I basically need is to put a link on the button to download the mp3 file.

Any ideas?

In this case the user will only download. Should I use "_self" instead "_blank" ?

thanks in advance :)

nthpixel
03-04-2004, 05:26 PM
You can just leave out the "_blank" completly. When the user clicks on the button, it will ask the user if he wants to download the mp3.

1ok
03-04-2004, 05:44 PM
The problem is that nothing happens if I link the button to an mp3 file. I have tested it without the "_blank", but still nothing happens.

the link is
http://www.rraurl.com/sets/buga_01.mp3

But if I change the final extension to ".htm" the button starts to work.

There is also another problem... It seems that when the user clicks no an mp3 file, sometimes the browser starts to download the file, but I need the file to be saved!!

nthpixel
03-05-2004, 11:17 PM
A recent post said to zip up the mp3. Try that.

boyzdynasty
03-06-2004, 03:29 AM
have you look into php script to force down... search for that. it is somewhere on the forums.

1ok
03-06-2004, 12:54 PM
ok, I´ll take a look. Thanks !