flash question
- Started
- Last post
- 4 Responses
- flashbender
so I made an mp3 player and one of the function I need to add is a "download this song" button.
I thought getURL targeting a _blank window would work, but what happens is the mp3 loads and starts to play in the blank window, which is not the desired effect
Does anyone know if there is a way to force a "save as" on flash button so that a save dialog box opens instead of actually loading the mp3?
thanks
- Llyod0
A: flash suck
- heavyt0
Check the example for content-disposition headers.
Basically, you just use those headers on an html page to prompt the download.
- flashbender0
I did a bit more digging and found that there is a "FileReference.download method" ( http://livedocs.adobe.com/flash/…)
I'm gonna dick around with that and see what I can do with that.
However I'm still all ears for any other ideas
- flashbender0
If you're interested, that worked, but apparently you have to use a full URL (with the http:) for it to work