User Guide
Chapter 358
on activateWindow
Syntax
on activateWindow
statement(s)
end
Description
System message and event handler; contains statements that run in a movie when the user clicks
the inactive window and the window comes to the foreground.
You can use an
on activateWindow handler in a script that you want executed every time the
movie becomes active.
Clicking the main movie (the main Stage) does not generate an
on activateWindow handler.
Example
This handler plays the sound Hurray when the window that the movie is playing in becomes active:
on activateWindow
puppetSound 2, "Hurray"
end
See also
activeWindow, close window, on deactivateWindow, frontWindow, on moveWindow, open
active3dRenderer
Syntax
the active3dRenderer
Description
3D Lingo movie property; indicates the renderer currently in use by the movie for drawing 3D
sprites. This property is equivalent to the
getRendererServices().renderer property.
The possible values of the
active3DRenderer property are #openGL, #directX7_0,
#directX5_2, and #software. The values #openGL, #directX7_0, and #directX5_2, which are
video card drivers, will lead to much faster performance than #software, a software renderer used
when none of the first three options are available.
The
active3dRenderer property can be tested, but not set. Use
getRendererServices().renderer to set this property.
Examples
These examples show the two ways to determine which renderer is currently in use.
put the active3dRenderer
-- #openGL
put getRendererServices().renderer
-- #openGL
See also
renderer, rendererDeviceList, getRendererServices()