3 Replies Latest reply on Sep 13, 2006 8:01 AM by Newsgroup_User

    Is Director App in focus??

    Level 7
      Hi

      How can I detect, if Director Application is now active window or other
      Windows Application is now used?

      Following problem:
      _key.keyPressed(123) is true, even if I work now in MS Word and press Left
      arrow on my keyboard (Director Projector is running in background at the
      same time). How can I detect if Director App is the toppest window and is
      allowed to interpret my Inputs?

      Another question:
      If I crate a projector with option "Center stage", then run projector and
      click outside of stage (on the dark area) - since that Time on keyDown event
      doesn't work (I hear only beep), until I click again into stage area (the
      forcus return to stage window). How do I solve this problem?
      Can stage window be authomatically focused if director app is toppes window?

      Thanx in advance
      Any help will be appreciated
      LM


        • 1. Re: Is Director App in focus??
          Level 7
          Look into BuddyAPI (www.mods.com.au/budapi). It has several commands
          for dealing with windows and their states. See commands such as
          baWindowInfo which can see if an app is minimized or not (among other
          info), baActiveWindow which tells you which window is on top,
          baWindowDepth which tells you where in the z-order a given window is,
          and several others.
          • 2. Re: Is Director App in focus??
            Level 7
            Is there any other possibility - free Xtra or Director functions?

            "Mike Blaustein" <mblaustein@gmail.com> wrote in message
            news:ee8ufl$68t$1@forums.macromedia.com...
            > Look into BuddyAPI (www.mods.com.au/budapi). It has several commands
            > for dealing with windows and their states. See commands such as
            > baWindowInfo which can see if an app is minimized or not (among other
            > info), baActiveWindow which tells you which window is on top,
            > baWindowDepth which tells you where in the z-order a given window is,
            > and several others.


            • 3. Re: Is Director App in focus??
              Level 7
              It isn't nearly as easy to use, but you can use the Built-in Director
              handlers:

              on deactivateWindow

              and

              on activateWindow

              to run custom code whenever the Director movie (or rather whenever the
              Stage Window of the Director movie) looses or gains focus.