3 Replies Latest reply on Jun 16, 2007 12:33 AM by PAULA_W

    PROJECTOR CENTRE ON MAXIMISIE

    PAULA_W

      Hello there,
      I am trying to create a director projector that centres on maximise. At present, I can get my projector to centre on opening but when maximised it defaults to top left. Can anyone help to get me to centre it when maximised to full window?
      Have tried changing launch ini settings and movie properties (but may be doing this wrong ??? Got about 6 frame markers that pages go to displaying gfx, flash and other cast assets?

      Any help much appriciated

      Paula :)
        • 1. Re: PROJECTOR CENTRE ON MAXIMISIE
          Level 7
          Try the following handlers in a #movie script:
          --
          on zoomWindow
          mWindowResize()
          end

          on resizeWindow
          mWindowResize()
          end

          on mWindowResize
          sr = _player.activeWindow.sourceRect
          cr = _player.activeWindow.rect
          mW = cr.width/2
          mH = cr.height/2
          sw = sr.width/2
          sH = sr.height/2
          dr = rect(mW - sw, mH - sH, mW + sw, mH + sH)
          _player.activeWindow.drawRect = dr
          end
          • 2. Re: PROJECTOR CENTRE ON MAXIMISIE
            PAULA_W Level 1
            Hey Sean, thanks for that. Think I've tried it but will try again. Can I ask where I put the movie script please? Sorry to sound thick! I originally tried doing something along these lines in the opening frame script for a flash intro but it didn't work. Don't think I know how to add a movie script, do I add the same script to each frame script so each window maximises?
            Thanks Paula :)
            • 3. Re: PROJECTOR CENTRE ON MAXIMISIE
              PAULA_W Level 1
              Hey thanks again. got it to work wow am gobsmacked! I changed the opening flash intro script into a movie script and added your ling. You're a star, really appreciate your help, cheers
              Paula x