EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1007

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
stage 1007
This approach allows the use of the reference pMySpriteRef later in the script, with the handler
using the syntax:
-- Lingo syntax
currMember = pMySpriteRef.member
// JavaScript syntax
var currMember = pMySpriteRef.member
instead of the following syntax which is somewhat longer:
-- Lingo syntax
currMember = sprite(spriteNum).member
// JavaScript syntax
var currMember = sprite(this.spriteNum).member
This alternative approach is merely for convenience, and provides no different functionality.
See also
new(), Sprite
stage
Usage
-- Lingo syntax
_movie.stage
// JavaScript syntax
_movie.stage;
Description
Movie property; refers to the main movie. Read-only.
This property is useful when sending a message to the main movie from a child movie.
Example
This statement displays the current setting for the Stage:
-- Lingo syntax
put(_movie.stage.rect)
// JavaScript syntax
put(_movie.stage.rect);
See also
Movie