548
Chapter 12: Methods
Example
This statement checks whether the left edge of the Stage is beyond the left edge of the screen and
calls the handler
leftMonitorProcedure
if it is:
if the stageLeft < 0 then leftMonitorProcedure
See also
stageBottom
,
stageRight
,
stageTop
,
locH
,
locV
stageRight
Usage
the stageRight
Description
Function; along with
stageLeft
,
stageTop
, and
stageBottom
, indicates where the Stage is
positioned on the desktop. It returns the right horizontal coordinate of the Stage relative to the
upper left corner of the main screen’s desktop. The width of the Stage in pixels is determined by
the stageRight -
the stageLeft
.
When the movie plays back as an applet, the
stageRight
property is the width of the applet
in pixels.
This function can be tested but not set.
Sprite coordinates are expressed relative to the upper left corner of the Stage.
Parameters
None.
Example
These two statements position sprite 3 a distance of 50 pixels from the right edge of the Stage:
stageWidth = the stageRight - the stageLeft
sprite(3).locH = stageWidth - 50
See also
stageLeft
,
stageBottom
,
stageTop
,
locH
,
locV
stageToFlash()
Usage
-- Lingo syntax
spriteObjRef
.stageToFlash(
pointOnDirectorStage
)
// JavaScript syntax
spriteObjRef
.stageToFlash(
pointOnDirectorStage
);
Description
Function; returns the coordinate in a Flash movie sprite that corresponds to a specified coordinate
on the Director Stage. The function both accepts the Director Stage coordinate and returns the
Flash movie coordinate as Director point values: for example, point (300,300).
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...