EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 622

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...
622 Chapter 14: Properties
Example
These statements display movie information in the Message window.
-- Lingo syntax
trace(_movie.aboutInfo)
// JavaScript syntax
trace(_movie.aboutInfo);
See also
copyrightInfo (Movie), Movie
actionsEnabled
Usage
-- Lingo syntax
memberOrSpriteObjRef.actionsEnabled
// JavaScript syntax
memberOrSpriteObjRef.actionsEnabled;
Description
Cast member property and sprite property; controls whether the actions in Macromedia Flash
content are enabled (
TRUE, default) or disabled (FALSE).
This property can be tested and set.
Example
This handler accepts a sprite reference as a parameter, and then toggles the sprite’s
actionsEnabled property on or off.
-- Lingo syntax
on ToggleActions(whichSprite)
sprite(whichSprite).actionsEnabled = \
not(sprite(whichSprite).actionsEnabled)
end
// JavaScript syntax
function ToggleActions(whichSprite) {
switch(sprite(whichSprite).actionsEnabled) {
case 0:
sprite(whichSprite).actionsEnabled = 1;
break;
case 1:
sprite(whichSprite).actionsEnabled = 0;
break;
}
}