1 Reply Latest reply on Aug 10, 2007 1:10 PM by Newsgroup_User

    Stop audio when projector looses focus???

    brad simon
      I am using the MPEG Advance Xtra to play audio. I import the audio with the Xtra and it places an audio member in my cast. I then drag that onto the stage and into Channel 20. It spans 10 frames and there is a stop command on the last frame so that the audio voice over plays to the end.

      I have several of these audio sprites throughout my project and I need a way for audio to pause when the viewer switches to another program and then start again when the return to my project. I have UNchecked the box in the projector settings that says, "Play in Background" so that is not the issue. I tried to place the following Lingo on the sprite that contains the audio:

      on deactivateWindow
      sprite(20).stop()
      end

      on deactivateApplication
      sprite(20).stop()
      end

      These don't work. Maybe I'm placing them in the wrong location or maybe they are wrong altogether. Your suggestions would be appreciated!!!

      Brad
        • 1. Re: Stop audio when projector looses focus???
          Level 7
          > I have UNchecked the box in the projector
          > settings that says, "Play in Background" so that is not the issue. I tried to
          > place the following Lingo on the sprite that contains the audio:
          >
          > on deactivateWindow
          > sprite(20).stop()
          > end
          >
          > on deactivateApplication
          > sprite(20).stop()
          > end

          I think you need to re-check the "animate in the background" box, and
          the handlers above need to be in a #movie script - these messages aren't
          sent to sprites.