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;
}
}
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...