5 Replies Latest reply on Apr 25, 2008 1:15 PM by Miguel2586

    HELP WITH ACTIONSCRIPT SOUND CONTROL

    Miguel2586
      Hey i'm developing a flash site, and i'm having trouble with a sound control system based on action script, here's the deal, i've the file named "music" and is already associated with AS, and i have a movie clip with two buttons, one starts, one stops, the frame where the buttons are placed have this code:



      qwerty._visible = false

      music = new Sound()
      music.attachSound("music");
      music.start(0,1234567890)

      play_btn.onPress = function() {
      music.start(0,1234567890)
      }
      stop_btn.onPress = function() {
      music.stop()
      }



      the two buttons have the instance names according to the script, the problem is, when i'm on the mainscene th sound loads perfect, then when i go to the next scene everything goes right, but when i press the "home" button to go back to the main scene, the music loads again overlapping the previous one... so is there anyway to avoid that?