1 Reply Latest reply on May 13, 2012 5:45 PM by Sean_Wilson

    further help with sound please

    ash_vir1

      further help with the sound.

       

      i have a sound in stage channel 1 which i want to play as soon as the movies starts. and the user is able to control it by pressing the pause button

       

      property pPaused

       

      on beginSprite me

      pPaused = 0

      end

       

      on mouseUp me

      if pPaused then sound(1).play()

      else sound(1).pause()

      pPaused = not pPaused

      end

       

       

      i have  other sounds in songs (2 sounds ) and nursery rhymes (4 sounds ) with the behaviour added to the buttons as below etc,

       

       

      on mouseDown me

        sound(5).play( member("ABCSong") )

      end

       

      on endSprite me

        sound(5).stop()

      end

       

      this stops the sound playing when i leave the frame but doesn't stop the sound in the stage channel 1.

       

      i only want to play 1 sound at a time perferly when the button is pressed and stop 

       

      could anyone  please advise of how to solve this problem. only using intermediate/basic lingo as i need to understand it.

      any help is much appreciated

       

       

      thank you