A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: ?? Downloading MP3's from my server using link in MX ??

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Location
    LV
    Posts
    3

    ?? Downloading MP3's from my server using link in MX ??

    Hello all,

    I'm making a site for a DJ friend and Im streaming MP3's through flash... well, he wants people to be able to download his MP3's. Im wondering if there is a way to make the MP3 download by clicking a link in flash.

    I hope there is!!

    thanks,
    Gat

  2. #2
    Junior Member
    Join Date
    Sep 2002
    Posts
    5
    Im new to this but should give you what you want.

    If your keeping the mp3's in movie clips (by that I mean differnet .swf files) I dont think so. If you were able to do it you'd need to read in the data of the mp3 in the library and send that to the browser, but I don't think you can set things like set the content-type and filename...

    This is a bit OT but if you can use php or any other server-side technology you can read in the mp3 files and then send them to the browser (client).

    If there are actual .mp3 files on the web server you can just use a getURL() call to the mp3 on the server file and the user will be prompted to download the file
    Elfyn McBratney
    [ hr="this is my own kind of hr, something that strings you along ]
    web: http://www.emcbnet.co.uk
    mail: elfyn@exposure.org.uk,elfyn@emcbnet.co.uk

  3. #3
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Any files that the browser can display wont be downloaded. If you have QuickTime for example, it will open and play the mp3 instead of downloading it.
    Its as simple as zippng or stuffing the mp3's that is for downloading.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Location
    LV
    Posts
    3
    the mp3's are on the server and not inside swfs. also, they are full DJ sets, so they are quite large. having seperate .zip files is not what i have in mind. the quicktime thing is kind of annoying...

    so php is the way to go. just gotta figure out how.

    thanks,
    gat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center