•
•
•
•
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 363,826 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 4,302 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:
Views: 532 | Replies: 2 | Solved
![]() |
•
•
Join Date: Jan 2008
Posts: 15
Reputation:
Rep Power: 1
Solved Threads: 0
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:
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!
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.
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,788
Reputation:
Rep Power: 8
Solved Threads: 187
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.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Graphics and Multimedia Marketplace
•
•
•
•
aac adobe animations aol apple audio beatles copyright dell digital downloads drm dvd emi facebook fairplay files flash flash flv free hard drive interactivity. internet radio ipod itunes laptop legal linux media memory mp3 multimedia music napster news pandora riaa sales sandisk scripting security store stream streaming video web development youtube
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Right click in flash
- Next Thread: Looking for a particular flash tutorial



Linear Mode