9 Replies Latest reply on May 9, 2007 8:50 AM by Charles Parcell

    fullscreen restore

    newmfa Level 1
      Hi,
      "How can i restore monitor resolution settings with BuddyAPI" this is my hard question that let me tried more and more..
      in next lines my details of my dir movie:

      movie 800x600px, has two buttons named "start" and "stop"
      in first frame i put this code:

      global gScrWdt , gScrHgt , gScrDepth

      on startMovie me
      gScrHgt = baScreenInfo( "height" )
      gScrWdt = baScreenInfo( "width" )
      gScrDepth = baScreenInfo( "depth" )
      gScrRefresh = baScreenInfo( "refresh" )
      end
      on stopmovie me
      OK = baSetDisplay( gScrWdt , gScrHgt , gScrDepth , "perm" , false )
      end

      in last frame i put this code for looping:

      global gScrWdt , gScrHgt , gScrDepth
      on exitFrame me
      go the frame
      end

      if you wish start on fullscreen i do that well, i put next code to start button:

      global gScrWdt , gScrHgt , gScrDepth
      on mouseUp me
      OK = baSetDisplayEx( 800 , 600 , 32 , 75 , "temp" , false )
      (the stage).rect = (the desktopRectList)[1]
      end

      to quit movie i put this code to stop button:

      global gScrWdt , gScrHgt , gScrDepth
      on mouseUp me
      _player.quit()
      end

      i put this line " global gScrWdt , gScrHgt , gScrDepth " to all scripts woindows
      after all that, the problem still live, how can restore resolution..?!!

      is there a solve..?
      newmfa