A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sound.stop(linkage) problem

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Location
    Philippines
    Posts
    515

    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,
    Ramon Miguel M. Tayag

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    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.

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Location
    Philippines
    Posts
    515
    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);
    Ramon Miguel M. Tayag

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center