MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 548

Director scripting reference
Table of Contents

Advertisement

Example
This statement checks whether the left edge of the Stage is beyond the left edge of the screen and
calls the handler
if the stageLeft < 0 then leftMonitorProcedure
See also
stageBottom, stageRight, stageTop, locH,
stageRight
Usage
the stageRight
Description
Function; along with
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
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,
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).
548
Chapter 12: Methods
leftMonitorProcedure
,
stageLeft
stageTop
.
if it is:
locV
, and
, indicates where the Stage is
stageBottom
property is the width of the applet
stageRight
locV

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents