I am designing a flash site for a singer and I want to make some songs downloadable. I have a simple button with the actionscript:
on (release) {getURL(“http://www.jaynefraser.com/music/About A Boy - Jane Fraser.mp3”, “_blank”);
}
But when it is clicked in Firefox a new tab/window opens and the mp3 plays in that with the Quicktime controls. When clicked in IE7 a new tab opens for a second and then closes itself! I already have a media player built in to the site so viewers can listen to samples without leaving the page.
I have tried various combinations of windows and variables, _self, _parent, _top with Don’t send, Send using GET, Send using POST, but none of them achieve what I want. Which is, I want, when the button is clicked, to always open a download dialogue box asking the viewer do the want to save the mp3 to their hard drive or open it. Is there some script I can add to my button to achieve this? Any help would be greatly appriciated.
Regards,
Praha.
P.S. If you want to see for yourself go to [FONT=Courier New]www.jaynefraser.com/test[/FONT] the click: Media; Music; About A Boy; Download About A Boy