3 Replies Latest reply on May 30, 2011 3:23 PM by MECS

    Handler not defined

    MECS Level 1

      I searched the thread by that name, but didn't find an issue that was close enough to mine to solve my problem.  After a couple of years, I am back on a project that uses the buddy api xtra.  I am rusty on its implementation, so I may be doing something glaringly obvious that is causing the problem.

       

      The first thing I want the program to do is take a peek into the registry and see if a Key is there called PVUD/2d..  If it doesn't exist, then write it and set its value to 0.

       

      If it does exist, then leave its value alone and jump to frame "compare".

       

      Can you enlighten me on what I'm doing wrong?

       

      Thanks.

       

      Here is the code:

       

       

      on exitFrame me

       

        global regcheck

       

        set regcheck = baReadRegNumber("PVUD/2d","FstD","HKEY_CLASSES_ROOT")

       

        if regcheck = empty then

       

          baWriteRegNumber("PVUD/2d","FstD",0,"HKEY_CLASSES_ROOT")

       

        else

       

          go frame "start"

       

        end if

       

      end

       

      Here is the result:

       

       

      Director

       

       

      Script error: Handler not defined

       

       

      #baReadRegNumber

        • 1. Re: Handler not defined
          Mike Blaustein Level 4

          If you aer getting Handler Not Defined, then it is likely that you do not have BuddyAPI installed.  The second thing is that you are using it wrong.  Check the docs for the correct syntax:

           

          http://www.mods.com.au/budapi_docs/baReadRegNumber.htm

           

          There should be 4 arguments, and you are only supplying 3.

           

          Also, the reseult will never be empty, since the command will return a number all the time (the argument you are missing is the one that defines the default return if the key is missing)

          • 2. Re: Handler not defined
            MECS Level 1

            Ok, Mike.  Thanks.  I’ll check that out to see what I missed.

             

             

             

            I appreciate your quick response.

             

             

             

             

             

            From: Mike Blaustein forums@adobe.com

            Sent: Sunday, May 29, 2011 1:36 PM

            To: Dewey Parker

            Subject: Re: Handler not defined

             

             

             

             

             

            If you aer getting Handler Not Defined, then it is likely that you do not have BuddyAPI installed.  The second thing is that you are using it wrong.  Check the docs for the correct syntax:

             

            http://www.mods.com.au/budapi_docs/baReadRegNumber.htm

             

            There should be 4 arguments, and you are only supplying 3.

             

            Also, the reseult will never be empty, since the command will return a number all the time (the argument you are missing is the one that defines the default return if the key is missing)

            • 3. Re: Handler not defined
              MECS Level 1

              Both responses were halpful in allowing me to properly install my Xtra, and correct my syntax.

               

              Much appreciated.

               

              Dewey