Be the first to write a review
Building a Flash MP3 Player part 2
In part 1 of this tutorial series, we used Flash MX 2004 to build an MP3 Player. The player used functions to load a list of MP3s from an XML file into Flash. It allowed us to play, stop and rewind the songs as well as increasing and decreasing the volume.
In Part 2 of the tutorial, we'll build the same MP3 Player using AS2.0 classes. It'll be useful if you're looking to extend your skills in this area. If you haven't completed part 1, it might be a good idea to do so before starting this tutorial.
The tutorial assumes that you are working with Flash MX 2004 Professional and that you know how to write ActionScript. You'll learn how to create custom classes in Flash and use them to load the MP3 player with songs from an XML file.
You can download the source files for the tutorial from the blue Properties box that contains the article PDF. There's a heading titled Code Download and you can click the Details link next to it to get the zip file. The download includes the starter file MP3s001.fla as well as the completed file MP3s001_completed.fla and the finished class files. You'll need to supply your own MP3 files.
Note: If you have difficulties downloading the source files or PDF, you might have a problem with your cookies. Delete the cookies from your machine and try again. In Internet Explorer, you can do this by choosing Tools > Internet Options... and clicking the Delete Cookies... button on the General tab.
Sas Jacobs
Hello. I'm the Principal of Anything Is Possible, an Australian web development business specialising in web applications development and training. I'm interested in using Flash with dynamic content and I've presented at a number of International conferences on topics relating to applications development, XML and scripting components. I have recently released my second print book Beginning XML with DOM and Ajax to match the first one - Foundation XML for Flash. I have a business web site
and a personal web site.