943,900 Members | Top Members by Rank

Ad:
May 13th, 2008
0

Flash Music, outside my element!

Expand Post »
I'm lost on this and am going to lose the account if I can't find a solution!!! I started a Flash website for a band. They have several samples of music from their CD which they want to play on the website. I've got them to play as button events but that's a problem in itself! They keep overlapping as I can't get one instance to stop and start another. I can get them to play a single time, so if someone selects a sample, they'll just have to let it play through and then select a second one...I can live with that but would prefer the samples to stop playing when another is selected.

Here's my biggest problem though; there's a background sound that plays when the swf file is loaded and repeats itself indefinitely. This is what the client wants. I want the bg music to stop playing when a sample from the CD is played but I can't, for the life of me, get it stop playing when the sample is selected! I'm trying it as actionscript but not even sure if that is correct, I again can get one to play but it won't stop anything else from playing so everything just overlaps everything else!

Can I control a timeline sound (i.e. a background sound) with a button sound or event?
Here's the sample of a single button:
on (release) {
var mySound:Sound= new Sound();
mySound.loadSound("Judge Judy (1m 26s).mp3" , true);
mySound.onLoad = function() {
mySound.start();}
}

How do I stop the background sound when this button is selected? If I duplicate the button instance but give it a new name, can I then stop it somehow when another is selected?

Sorry, I'm really a HTML/ASP designer and this flash stuff is really foreign to me!
Last edited by txwebdesign; May 13th, 2008 at 7:03 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
txwebdesign is offline Offline
21 posts
since Jan 2008
May 13th, 2008
0

Re: Flash Music, outside my element!

Here is nice tutorial http://kennybellew.com/tutorial/
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
May 14th, 2008
0

Re: Flash Music, outside my element!

Great tut. I think I already found out some things on it that should def help. I appreciate the point in the right direction.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
txwebdesign is offline Offline
21 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Graphics and Multimedia Forum Timeline: Right click in flash
Next Thread in Graphics and Multimedia Forum Timeline: Looking for a particular flash tutorial





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC