SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mySound.stop(["idName"]) how do you assign the id name?

    I am a bit stuck.

    I have one particular sound I need to stop and I can't figure it out. in the flash help it says use this: mySound.stop(["idName"])

    but how do I assign an ID name to that sound?

    It's called Cheeeez.wav in my library and it just sits on the main timeline, but I want to to stop when I click a button and it moves to a new frame.

    I tried to use this on my button:

    Code:
     
    
    on (release) {
    _root.gotoAndPlay("startgame" );
    stopAllSounds();
    }


    It works but then it stops the new sound that plays on the "startgame" frame too. So I need to target just the Cheeez.wav

    Any ideas??

    Thank you. [img]images/smilies/smile.gif[/img]
    ****************
    The Webmistress

  2. #2
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ID name is optional. Goto the library, right click on the movie, select LINKAGE..., select EXPORT FOR ACTIONSCRIPT and give it an IDENTIFER name above it.

    Also, read this book! Macromedia Flash MX, Advanced ActionScript, co-written by Jobe Makar. It goes over many new to advanced topics (sound and linkage included!) It's an excellent read and well worth the $45 price tag.

  3. #3
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks that's sorted it.
    ****************
    The Webmistress


Bookmarks

Posting Permissions

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