flash cs3 playlist

Posted on 2008-11-05
Medium Priority
Last Modified: 2013-11-12
How to build a play list on flash cs3 using the list as toggle buttons?
Hi, I need  to crate a flash file that will served as a soundtrack.
I have a list of 9 titled songs converted each one into buttons. All I want is to make each button play the sample audio belonging to the song title. I manage to make it play but I have more than one so my problem is that I need for each button to turn off the previous first and then play the new audio in case user switches to next song before the first one ends.

This is my code sample for just 2 buttons so far:
mySound = new Sound();

song1_btn.onRelease = function() {


mySound = new Sound();

song2_btn.onRelease = function() {
Question by:Mlo-Designs
LVL 39

Accepted Solution

blue-genie earned 1200 total points
ID: 22892906
this should work

function playSound(which:String) {
var mySound:Sound = new Sound();
btn1.onRelease =function() {
btn2.onRelease = function() {

Open in new window


Author Closing Comment

ID: 31513694
OMG- Worked like a charm. Thank You Very Much

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses
Course of the Month17 days, 11 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question