The problem is not playing part of an mp3, I know that can be done. But I'd like to cut down on bandwidth by loading a specified two-minute portion of each mp3. These files can be up to 20mb, and since users will play many of these songs (and probably move on after a minute or two of listening), it would be very inefficient to load the whole mp3. Can this be done or is there another method you can suggest? Possibly a server side script that slices and/or lowers the mp3's bitrate?
Thanks in advance!
If you want the whole song available, then you will have to load the whole song, what you may want to try is to use Soundbooth or an editing prog to cut clips of the song. You would then only load the smaller file, instead of the whole. You could also stream it. Check the NetStream class.
Thanks for the reply waterdad. The whole song does not need to be available. And the users are uploading the music, not me, so I can't download, cut, and reupload all of their songs. The best solution would probably be a script that can cut mp3s that would run after file upload. As for this netstream class, does the whole mp3 get loaded or can you specify a start loading point and a length so that it only will load between boundaries? I'm not very knowledgeable with AS so if this is possible, I would be very grateful if you could show me or point me to an example of code that can do this.