QuickTime.SetFullScreen

boolean QuickTime.SetFullScreen ( 

string  ObjectName,

boolean FullScreen,

boolean HideCursor = false,

number  Sizing = 2,

number  Monitor = 0 )

Example 1

– Toggle full screen
bFullScreen = QuickTime.GetFullScreen("QuickTime1");
QuickTime.SetFullScreen("QuickTime1", not bFullScreen, false, qtFullScreenMovieFitsMonitorMaintainAspectRatio, 1);

Toggles the QuickTime object named "QuickTime1" between full screen mode and normal mode. In other words, if "QuickTime1" is currently in full screen mode, make it normal; and if it's currently in normal mode, make it full screen.

Note: The not operator is used in this example to convert the result of the QuickTime.GetFullScreen action to its logical opposite. If QuickTime.GetFullScreen returns true, the not converts that true into a false; if QuickTime.GetFullScreen returns false, the not converts that false into a true. The result is then used as the second parameter in our QuickTime.SetFullScreen action. So, the QuickTime.SetFullScreen action sets the full screen mode of "QuickTime1" to true or false, based on whether "QuickTime1" is currently in full screen mode or not, essentially toggling its full screen mode between on or off.

See also:  Related Actions