Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound 2

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Added like this in a frame of a mc:

mysound = new sound();
mysound.loadSound("trac.mp3",true);
mysound.start();

How do I turn this off without using stop all sounds, dont want to kill sound in my button rollovers whn the music is turned off, just the music, how do I unload "mysound".

on (press) {
_root.sound.mysound.stop();
}


But that didnt work.

 
the code is fine you just havent targeted the clip the sound is in

on (press) {
_root.clipname.mysound.stop();
}


_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
See How to control independent sound objects simultaneously here:


All you ever wanted to know about sound but were afraid to ask!

Regards,

cubalibre2.gif

Bacon, eggs and sunshine are still good for me!
 
Yeh thanks bill, I was actually targeting the clip the sound was in. Just forgot to name the damn clip on the timeline. Was 3:eek:o am and haven't slept for a few days.

Go figure..

Old that was a great link, saved to my favorites.

Hows everything in going up North?

 
How about How to Fade a Sound Object Up or Down in the g... tutorial? Did say it had it all!


Regards,

cubalibre2.gif

Bacon, eggs and sunshine are still good for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top