all groups > flash actionscript > february 2007 >
You're in the

flash actionscript

group:

How Do I change "all files" to "mp3"?



How Do I change "all files" to "mp3"? akakjb
2/28/2007 11:51:59 PM
flash actionscript: I am working on a page that has a lot of audio and have set each button to
right click and "save audio" but when it saves the file on the computer it
comes out as a "file" and most audio players don't recognize it. How do I
specify that the file being downloaded in the "download window" is an mp3 not
just a file?
Re: How Do I change "all files" to "mp3"? akakjb
3/1/2007 12:36:31 AM
I'm using the fileReference code to pull it from my server but I dojn't
understand how to specify that it needs to be saved as an mp3

below is an example of the code:

import flash.net.FileReference;

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = "URL link here";
if(!fileRef.download(url, "my audio.mp3")) {
trace("dialog box failed to open.");
}
Re: How Do I change "all files" to "mp3"? kglad
3/1/2007 1:13:03 AM
Re: How Do I change "all files" to "mp3"? akakjb
3/1/2007 9:12:26 PM
Re: How Do I change "all files" to "mp3"? IwannaFlashU
3/1/2007 10:03:52 PM
Re: How Do I change "all files" to "mp3"? kglad
3/2/2007 12:52:58 AM
flash doesn't do that. it sounds like a security measure peculiar to your
local computer.

do you have that problem when you download files from elsewhere? does anyone
else have that problem when downloading from your site using the filereference
class?

(and yes iwfu, that's new in flash 8 pro.)
AddThis Social Bookmark Button