how to stop sound in flash when click to another link?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elriez
    New Member
    • Feb 2010
    • 1

    how to stop sound in flash when click to another link?

    hye all

    currently im doing a project that need to include the sound..i already include the sound by simply import to the library and drag it to the stage..the sound can play well..the problem is..when i click to another link..the sound still working. so, how can i stop the sound when clicking to another link? plz let me know..im just a beginner in flash...thanks~

    regards
    elriez
  • nohimn
    New Member
    • Feb 2010
    • 6

    #2
    Flash has always been screwy with sounds. Back when I was organizing large collabs, the sound would always go incredibly off-sync, and sometimes would carry over from one person's animation to another's.

    Set the sound to Event in the Properties window. The Event setting basically tells the sound to play. If you set it to Stream, then it will sync with your timeline (generally goes out of sync when you start adding more sounds, or at least was like that in Flash 8). Start and Stop do just that: you can start in one keyframe, stop in another.

    After setting it to Event, just use this function to kill all sound:

    stopAllSounds() ;

    The sound currently playing will stop, and you can play anything new after that.

    Comment

    Working...