1 Reply Latest reply on Jul 20, 2006 1:39 AM by Newsgroup_User

    resizing MIAWs

    Opera Rat Level 1
      I'm using a movie as my backgound interface that 2 MIAW sit on top of. Is it possible to only show a portion of a MIAW, say a quarter of the screen and at some point a command from the other MIAW will expand the other MIAW to half the screen. Essentially, I want to hide half of the MIAW and then show the rest later, as if the MIAW's stage increased. This would be easy if the movie I'm using for the MIAW could just change it's own size within itself.
        • 1. Re: resizing MIAWs
          Level 7
          > This would be easy if the movie I'm
          > using for the MIAW could just change it's own size within itself.

          You can do this by having a window alter its rect. The handlers below
          are best tested from a projector - hopefully they'll give you some ideas:
          -- button (half size)
          on mouseUp me
          tRect = _movie.stage.rect
          tRect[3] = tRect[1] + _movie.stage.sourceRect.width/2
          _movie.stage.rect = tRect
          end

          -- button (full size)
          on mouseUp me
          tRect = _movie.stage.rect
          tRect[3] = tRect[1] + _movie.stage.sourceRect.width
          _movie.stage.rect = tRect
          end