3 Replies Latest reply on May 26, 2006 9:12 AM by Newsgroup_User

    Problem with using an audio extra

    mohsena
      Hello all:

      I tried to play an extra sound in director mx 2004 ,when I play it it send me back this error dialog box:
      Script error:Handler not defined
      axStopRectangle
      #axStopRectangle

      When I click on script button ,it the following handler:
      on stopMovie
      --do not let the recorder opened, no matter how we have stopped
      axStopRecording()
      axCloseRecorder()
      --and clear the soundList
      clearSoundList()
      --and reset our wave preview picture
      member("wave_preview").image = member("wave_preview_empty").image
      end
      ***************************************]*********************88
      Thank you very much for your attention
      Sincerely yours Mohsena
        • 1. Re: Problem with using an audio extra
          Level 7
          From your description, it sounds like you have either not included the
          xtra with your projector, or, you need to instantiate this xtra before
          you can call a handler.

          I don't know what xtra you are using, but the documentation for that
          xtra may also bring some light to the problem.

          --
          Rob
          _______
          Rob Dillon
          Adobe Community Expert
          http://www.ddg-designs.com
          412-243-9119

          http://www.macromedia.com/software/trial/
          • 2. Re: Problem with using an audio extra
            mohsena Level 1
            Hello and thank you very much for your atttention ,would you please tell me how can I include the extra with the projector or instantiate the xtra?
            Sincerely yours Mohena
            • 3. Re: Problem with using an audio extra
              Level 7
              Most xtras require a sequence of commands to start them up, instantiate,
              before you can call a function or command that belongs to the xtra.
              Exactly how you do that should be in the documentation for the xtra.

              The process generally runs something like this:

              on someFunction
              -- place an instance of the xtra in a new variable...
              thisXtraInstance = xtra("yourXtraName").new()
              -- call the function or command that you want to use
              functionResult = thisXtraInstance.functionName(arguments)
              -- throw out the xtra instance...
              thisXtraInstance = 0
              end

              When you create a projector, that projector needs to use the runtime
              versions of each xtra that's used in the movie. You can have Director
              include the xtras inside the projector by selecting them from the
              Modify... Movie... Xtras... menu item. Alternately, you can create a
              folder and name it "Xtras". Then place a copy of each needed xtra into
              that folder.

              You can find out more about using xtras in the Director documentation.

              --
              Rob
              _______
              Rob Dillon
              Adobe Community Expert
              http://www.ddg-designs.com
              412-243-9119

              http://www.macromedia.com/software/trial/