-
Sound.stop(linkage) problem
Hi everyone,
I was pulling out my hair a while ago because in my movie, when I
stopped one sound it stopped all. After commenting code randomly, I
found out the anySound.stop() stopped all sounds.
Looking at the documentation, it says you can specify what sound to
stop using a linkage ID. I understand that'd work fine if you use
sound.attachSound (getting a sound from the library), but what if you
use sound.loadSound(file)? What is the linkageID now?
Thank you,
-
Senior Member
if you are using loadSound(), there is no linkage name. the actual file name goes in the brackets. i.e. sound.loadSound("filename.mp3")
If you don't think you're going to like the answer, then don't ask the question.
-
Ok thank you!
Actually after a lot of reading I found out to control it individually, you can use loadSound, but when you create the sound, u gotta link it to a movieclip.
var s = new Sound(someMC);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|