4 Replies Latest reply on May 16, 2007 10:36 AM by Newsgroup_User

    Disable a behaviour on mouse up

    Mike Crisp Level 1
      I have a video which I close by setting its visability to false.
      However
      This video has a 'Full Screen' (MpegAdvance Xtra) behaviour attached which still functions if you click the stage where the video is hidden (making the stage go full screen). I do no want to go down the road of moving the video off stage and going to a new frame is not an option.

      How can I prevent this behaviour from working. Then turn it back on again when the user chooses to view the video again?

      Thanks

      Mike
        • 1. Re: Disable a behaviour on mouse up
          Level 7
          create a flag property and set it to true or false depending on the state at
          the time.

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

          www.wordofmouthpros.com
          "Mike Crisp" <webforumsuser@macromedia.com> wrote in message
          news:f2edg6$p0o$1@forums.macromedia.com...
          >I have a video which I close by setting its visability to false.
          > However
          > This video has a 'Full Screen' (MpegAdvance Xtra) behaviour attached which
          > still functions if you click the stage where the video is hidden (making
          > the
          > stage go full screen). I do no want to go down the road of moving the
          > video off
          > stage and going to a new frame is not an option.
          >
          > How can I prevent this behaviour from working. Then turn it back on again
          > when
          > the user chooses to view the video again?
          >
          > Thanks
          >
          > Mike
          >


          • 2. Re: Disable a behaviour on mouse up
            Level 7
            oops, and further, create a condition for your full screen code that depends
            on the state of that property.

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

            www.wordofmouthpros.com
            "Mike Crisp" <webforumsuser@macromedia.com> wrote in message
            news:f2edg6$p0o$1@forums.macromedia.com...
            >I have a video which I close by setting its visability to false.
            > However
            > This video has a 'Full Screen' (MpegAdvance Xtra) behaviour attached which
            > still functions if you click the stage where the video is hidden (making
            > the
            > stage go full screen). I do no want to go down the road of moving the
            > video off
            > stage and going to a new frame is not an option.
            >
            > How can I prevent this behaviour from working. Then turn it back on again
            > when
            > the user chooses to view the video again?
            >
            > Thanks
            >
            > Mike
            >


            • 3. Re: Disable a behaviour on mouse up
              Mike Crisp Level 1
              Do you have an example?

              I have never heard of or used a flag property before.

              Thanks
              • 4. Re: Disable a behaviour on mouse up
                Level 7
                I'm assuming that this is a Lingo behavior and that it has a mouseUp or
                mouseDown handler in it...

                Actually you won't need the flag. You can use the visibility...

                on mouseUp me
                if sprite (me.spriteNum).visible = TRUE then
                -- put your maximize code here
                end if
                end

                you can still use the flag idea but it would be redundant since the visible
                feature acts the same way. but FYI:

                property pFlag

                on beginSprite me
                pFlag = TRUE
                end

                on mouseUp me
                if pFlag = TRUE then
                -- maximize code goes here
                end if
                end

                And you could set the flag to FALSE or TRUE in the same place you're setting
                the visiblity to FALES or TRUE. Setting it to FALSE would dissable the
                maximize feature.

                Craig

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

                www.wordofmouthpros.com
                "Mike Crisp" <webforumsuser@macromedia.com> wrote in message
                news:f2f894$sv0$1@forums.macromedia.com...
                > Do you have an example?
                >
                > I have never heard of or used a flag property before.
                >
                > Thanks