User Guide

730 Chapter 14: Properties
// JavaScript syntax
trace(newImage.depth);
This statement displays the color depth of the cast member Shrine in the Message window:
-- Lingo syntax
put(member("Shrine").depth)
// JavaScript syntax
put(member("Shrine").depth);
depthBufferDepth
Usage
getRendererServices().depthBufferDepth
Description
3D rendererServices property; indicates the precision of the hardware depth buffer of the
user’s system. The value is either 16 or 24, depending on the user’s hardware settings.
Example
This statement shows that the depthBufferDepth value of the user’s video card is 16:
put getRendererServices().depthBufferDepth
-- 16
See also
getRendererServices(), getHardwareInfo(), colorBufferDepth
deskTopRectList
Usage
-- Lingo syntax
_system.deskTopRectList
// JavaScript syntax
_system.deskTopRectList;
Description
System property; displays the size and position on the desktop of the monitors connected to a
computer. Read-only.
This property is useful for checking whether objects such as windows, sprites, and pop-up
windows appear entirely on one screen.
The result is a list of rectangles, where each rectangle is the boundary of a monitor. The
coordinates for each monitor are relative to the upper left corner of monitor 1, which has the
value (0,0). The first set of rectangle coordinates is the size of the first monitor. If a second
monitor is present, a second set of coordinates shows where the corners of the second monitor are
relative to the first monitor.