Groups | Blog | Home
all groups > flash data integration > december 2004 >

flash data integration : displaying files with an a folder on server with flash


talktodrew
12/30/2004 10:40:17 PM
ok so what i want to do is have a folder of Mp3's on my server, and then have
my flash application show those files so that a user can choose which mp3's
they want to hear and then click on it. However i want to be able to just add
mp3's to that folder and then have the flash app. automatically add it to its
list, and not have to go in and add it and make a link and stuff. so i guess
its a bit dynamic. i have no idea where to start.

thanks

Redemption is free
Pilipo
12/31/2004 12:37:12 AM
Drew,

The answer is to have an ASP or other script look at your folder and put the
files in XML for Flash. Flash then shows the list to the user and you use a
Sound object to load/play the mp3 selected.

I made a sample for you - you have to change the HOST variable in the Flash
frame script to your server name. You can also play with whether the load is
streaming (now it is set to not stream) To set streaming just replace false
with true in the loadSound statement. Also, I deleted the text field you might
see referenced in the code, I was just troubleshooting. You can get the sample
at:

http://www.kalalau.org/MMForums/mp3s.zip

If you can't use ASP, you should be able to do the same thing in any other
language....Good Luck!
AddThis Social Bookmark Button