4 Replies Latest reply on Feb 27, 2007 9:57 AM by Newsgroup_User

    miaw always on top

    Level 7
      I have a 1024x768 stage with a smaller MIAW that opens over the stage. Some
      navigation controls are on the stage and when I click on one, the MIAW moves
      behind the stage. I'm using MX and not MX 2004. In my searches the #tool
      window type might solve this but this isn't available in MX

      Do I keep the MIAW on top simply by issuing a moveToFront everytime I click
      on the stage? This seems clunky but if it works I'll try it. Any
      suggestions?


      --
      Craig Wollman
      Lingo Specialist
      Word of Mouth Productions
      212-928-9581

      www.wordofmouthpros.com


        • 1. Re: miaw always on top
          Level 7
          By the way, in authoring mode, the miaw stays on top. The problem is only
          with the projector

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "forum.macromedia.com" <lingoboy@wordofmo.com> wrote in message
          news:es0g2a$e5a$1@forums.macromedia.com...
          >I have a 1024x768 stage with a smaller MIAW that opens over the stage.
          >Some navigation controls are on the stage and when I click on one, the MIAW
          >moves behind the stage. I'm using MX and not MX 2004. In my searches the
          >#tool window type might solve this but this isn't available in MX
          >
          > Do I keep the MIAW on top simply by issuing a moveToFront everytime I
          > click on the stage? This seems clunky but if it works I'll try it. Any
          > suggestions?
          >
          >
          > --
          > Craig Wollman
          > Lingo Specialist
          > Word of Mouth Productions
          > 212-928-9581
          >
          > www.wordofmouthpros.com
          >


          • 2. Re: miaw always on top
            Level 7
            Hi Craig,

            You can use Buddy API's baSetWindowState() command with the "StayOnTop"
            parameter. Except that if you Alt + Tab to another application it will
            sit on top of this too

            I have also successfully set the primary mouse event handler in the
            stage's scope to move the MIAW to the front. Something like:
            -- MIAW #movie script
            on openWindow
            tell the stage to mSetMDS(the activeWindow)
            end

            on closeWindow
            tell the stage to mRemoveMDS()
            end

            -- stage #movie script
            -- "mouse down script"
            property storedMDS
            property windowName

            on mSetMDS aWindow
            script("mouse down script")[#storedMDS] = the mouseDownScript
            script("mouse down script")[#windowName] = aWindow.name
            the mouseDownScript = "mWindowToFront()"
            end

            on mRemoveMDS
            the mouseDownScript = script("mouse down script")[#_storedMDS]
            script("mouse down script")[#windowName] = EMPTY
            end

            on mWindowToFront
            tWindowName = script("mouse down script")[#windowName]
            if windowPresent(tWindowName) then window(tWindowName).moveToFront()
            -- pass/stopEvent
            end
            • 3. Re: miaw always on top
              Level 7
              Thanks Sean.

              Your code is doing what I had suggested right? It's essentially issuing the
              moveToFront on any mouse event to the stage?

              I don't like the consequences of the ba command so I think I'll go with the
              windowToFront idea. I'm assuming this won't create any visual vestiges when
              effected.

              Thanks Sean

              Craig


              --
              Craig Wollman
              Lingo Specialist
              Word of Mouth Productions
              212-928-9581

              www.wordofmouthpros.com
              "Sean Wilson" <webforumsuser@macromedia.com> wrote in message
              news:es0k5a$i99$1@forums.macromedia.com...
              > Hi Craig,
              >
              > You can use Buddy API's baSetWindowState() command with the "StayOnTop"
              > parameter. Except that if you Alt + Tab to another application it will sit
              > on top of this too
              >
              > I have also successfully set the primary mouse event handler in the
              > stage's scope to move the MIAW to the front. Something like:
              > -- MIAW #movie script
              > on openWindow
              > tell the stage to mSetMDS(the activeWindow)
              > end
              >
              > on closeWindow
              > tell the stage to mRemoveMDS()
              > end
              >
              > -- stage #movie script
              > -- "mouse down script"
              > property storedMDS
              > property windowName
              >
              > on mSetMDS aWindow
              > script("mouse down script")[#storedMDS] = the mouseDownScript
              > script("mouse down script")[#windowName] = aWindow.name
              > the mouseDownScript = "mWindowToFront()"
              > end
              >
              > on mRemoveMDS
              > the mouseDownScript = script("mouse down script")[#_storedMDS]
              > script("mouse down script")[#windowName] = EMPTY
              > end
              >
              > on mWindowToFront
              > tWindowName = script("mouse down script")[#windowName]
              > if windowPresent(tWindowName) then window(tWindowName).moveToFront()
              > -- pass/stopEvent
              > end


              • 4. Re: miaw always on top
                Level 7
                "forum.macromedia.com" <lingoboy@wordofmo.com> posted in
                macromedia.director.lingo:

                > Your code is doing what I had suggested right? It's essentially issuing
                > the moveToFront on any mouse event to the stage?

                You could also use an exitFrame or stepFrame event. I did something like that
                ages ago. IIRC, I used a smattering of activeWindow and Buddy API to
                determine the window z-order and probably windowToFront when necessary.

                I don't have any of that code handy, but I think that's how it went.
                Actually, now that I think of it, that was so long ago that I was probably
                using the 'idle' event (I didn't know what Factories were all about :)


                --
                Mark A. Boyd
                Keep-On-Learnin' :)