A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Clicking button to next scene, the first music clip still plays....

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    1

    Clicking button to next scene, the first music clip still plays....

    I have a button that basically skips to the next scene, both scenes have a music clip attached, when I advance to scene 2 the first music clip is still playing, and the new one starts.

    I have tried the stop sound command but this stops music all together.

    How do I just stop the first music clip from playing when I advance to scene 2 by clicking a button?

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    you need to call stopAllSounds() before entering the frame containing sound in the next scene or before you start your next sound object.

    perhaps you can place the stopAllSounds() in the skip button before all other code.

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