Hi, I guess, that is possible by setting some HTTP headers from a server-side script. I guess, Content-Disposition header.
http://www.faqs.org/rfcs/rfc2183 Content-Type -> "audio/x-mpeg" Content-Disposition -> "attachment" In PHP, I will do like this: <?php //getsong.php header('Content-type: audio/x-mpeg'); header('Content-Disposition: attachment; filename="song.mp3"'); readfile('song1.mp3'); ?> You will request the mp3 through the server-side script, it means you will not use direct url of mp3 in flex, instead send a query to a server-side script... Does it make sense? -abdul -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of drew_falk Sent: Monday, June 06, 2005 5:23 AM To: [email protected] Subject: [flexcoders] Re: file handling Sorry for delay on this replay...set the project aside for a bit. I was actually referring to DOWNLOADING. Currently, if you load an MP3, you can play it, but I want to actually prompt the user to save the file on their local drive... Thanks, Drew --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > Found it. It is under this subject: > "Great Abdul (c++/flex) source c++ <--> flex " > Posted around 4/14 > Tracy > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Thursday, May 26, 2005 4:27 PM > To: [email protected] > Subject: RE: [flexcoders] file handling > > Short answer: No. > > Long answer: Client file system access is limited by the security > sandbox, both at the browser and Flash Player level. > > You can achieve file upload capability using a custom HTML wrapper > containing custom javascript. Here's one link, google will find more. > http://www.flexauthority.com/articlesArchive/fileUpload.cfm. > > You can achieve local file access using a C# program with javascript and > Flex. Davis, I think, posted a solution, but I haven't found it yet. > > Tracy > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Drew Falkman > Sent: Thursday, May 26, 2005 3:05 PM > To: [email protected] > Subject: [flexcoders] file handling > > Is there any moderately simple way to do file handling on the client > (e.g. > to prompt for a user to save a file, such as an mp3)? > > TIA. > > Drew Falkman > Veraison, LLC > > > > > > Yahoo! Groups Links > > > > > > > > > > > > Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

