211
Example
This handler enables or disables all the items in the specified menu. The argument
theMenu
specifies the menu; the argument
Setting
specifies
TRUE
or
FALSE
. For example, the calling
statement
ableMenu (
"
Special
"
, FALSE)
disables all the items in the Special menu.
on ableMenu theMenu, vSetting
set n = the number of menuItems of menu theMenu
repeat with i = 1 to n
set the enabled of menuItem i of menu theMenu to vSetting
end repeat
end ableMenu
See also
name (menu property)
,
number (menus)
,
checkMark
,
script
,
number (menu items)
enabled (collision)
Syntax
member(
whichCastmember
).model(
whichModel
).collision.enabled
Description
3D collision property; allows you to get or set whether (
TRUE
) or not (
FALSE
) collisions are
detected on models. Setting this property to
FALSE
temporarily disables the
collision
modifier
without removing it from the model.
The default setting for this property is
TRUE.
Example
This statement activates the
collision
modifier for the model box:
member("3d world").model("box").collision.enabled = TRUE
See also
addModifier
,
collision (modifier)
,
modifier
enabled (fog)
Syntax
member(
whichCastmember
).camera(
whichCamera
).fog.enabled
sprite(
whichSprite
).camera{(
index
)}.fog.enabled
Description
3D camera property; indicates whether the camera adds fog to the view from the camera. The
default setting for this property is
FALSE
.
Example
This statement creates fog in the view from the camera named BayView:
member("MyYard").camera("BayView").fog.enabled = TRUE
See also
fog
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...