5 Replies Latest reply on Mar 7, 2008 12:05 PM by Newsgroup_User

    Full Screen DVD

    Level 7
      I'm doing a project that makes use of DVD video. I have included a button
      that successfully invokes the full screen presentation.

      sprite("myDVD").fullscreen = true

      However pressing the escape key to exit the full screen works only in the
      authoring mode. In a published projector, nothing happens. You are left
      stuck in full screen mode.

      Any thoughts?


        • 1. Re: Full Screen DVD
          tdriley Level 1
          Hi,

          I'm working on a project that does this at the moment:

          What I've done is make a movie script that initialises everything:



          global fullscreenvar
          global stagerectvar
          global spriterectvar

          on prepareMovie me

          fullscreenvar = false

          stagerectvar = (the stage).rect
          spriterectvar = rect(0, 0, 720, 576)

          end



          Then added a mouseUp behaviour to the DVD sprite:



          global fullscreenvar
          global stagerectvar
          global spriterectvar

          on mouseup me

          if fullscreenvar = true then

          (the stage).rect = stagerectvar
          sprite(yourDVDsprite).rect = spriterectvar

          sprite(yourDVDsprite).locH = 365
          sprite(yourDVDsprite).locV = 292

          fullscreenvar = false

          else

          (the stage).rect = the desktoprectlist[1]

          sprite(yourDVDsprite).rect = the desktoprectlist[1]

          fullscreenvar = true

          end if

          end



          All of that should let you click to make it fullscreen, then click the fullscreen video to return to the normal size (you will have to change the locH and locV properties to make sure your one goes back to the correct location on the stage. If you look at the code you should be able to figure out what is happening - basiclly when you click, it checks if the sprite is already fullscreen, and if it is, changes it back to the original size and position. if it isn't then it makes it fullscreen.

          Problem (maybe you can help?) - With a widescreen monitor and 4:3 video, the video will be stretched out, which is baaaaaad. I was thinking I could use some other code that is executed IF the screen width devided by the screen height was greater than 1.33? Maybe the "fullscreen" property you are using gets around this, I'll have to check.

          All the best
          • 2. Re: Full Screen DVD
            Level 7
            This looked like it had some possibilities; however, after invoking the full
            screen ( that works) the subsequent mouseUp on the DVD sprite does not
            register. It doesn't recognize the click.

            Thanks for trying though. I'll keep trying.


            • 3. Full Screen DVD
              tdriley Level 1
              quote:

              Originally posted by: Newsgroup User
              after invoking the full screen ( that works) the subsequent mouseUp on the DVD sprite does not register


              It should still register the click to go back to the regular size and position, because fullscreenvar = true when it is full screen.


              • 4. Re: Full Screen DVD
                Level 7
                "Greg Ambrose" <gra@gravideo.com> posted in macromedia.director.lingo:

                > This looked like it had some possibilities; however, after invoking the
                > full screen ( that works) the subsequent mouseUp on the DVD sprite does
                > not register. It doesn't recognize the click.

                Try moving the "restore" part of your behavior to the behavior (frame script)
                channel in the Score.



                --
                Mark A. Boyd
                Keep-On-Learnin' :)
                • 5. Re: Full Screen DVD
                  Level 7
                  The movement of the restore routine to the frame script doesn't help. The
                  cursor doesn't even show and a click isn't recognized. Thanks for trying.