User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Graphics and Multimedia section within the Web Development category of DaniWeb, a massive community of 402,950 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,795 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Graphics and Multimedia advertiser: Programming Forums
Views: 679 | Replies: 2 | Solved
Reply
Join Date: Jan 2008
Posts: 16
Reputation: txwebdesign is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
txwebdesign txwebdesign is offline Offline
Newbie Poster

Flash Music, outside my element!

  #1  
May 13th, 2008
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 6:03 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,243
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Flash Music, outside my element!

  #2  
May 13th, 2008
Here is nice tutorial http://kennybellew.com/tutorial/
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jan 2008
Posts: 16
Reputation: txwebdesign is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
txwebdesign txwebdesign is offline Offline
Newbie Poster

Re: Flash Music, outside my element!

  #3  
May 14th, 2008
Great tut. I think I already found out some things on it that should def help. I appreciate the point in the right direction.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Graphics and Multimedia Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Graphics and Multimedia Forum

All times are GMT -4. The time now is 6:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC