child (XML)
687
Example
This handler turns off any items that are checked in the custom menu specified by the argument
theMenu
. For example,
unCheck ("Format")
turns off all the items in the Format menu.
on unCheck theMenu
set n = the number of menuItems of menu theMenu
repeat with i = 1 to n
set the checkMark of menuItem i of menu theMenu to FALSE
end repeat
end unCheck
See also
installMenu
,
enabled
,
name (menu item property)
,
number (menu items)
,
script
,
menu
child (3D)
Usage
member(
whichCastmember
).model(
whichParentNode
).\
child(
whichChildNodeName
)
member(
whichCastmember
).model(
whichParentNode
).child[
index
]
Description
3D model, group, light, and camera property; returns the child node named
whichChildNodeName
or at the specified index in the parent node’s list of children. A node is a
model, group, camera, or light.
The transform of a node is parent-relative. If you change the position of the parent, its children
move with it, and their positions relative to the parent are maintained. Changes to the rotation
and scale properties of the parent are similarly reflected in its children.
Use the
addChild
method of the parent node or set the
parent
property of the child node to add
to the parent’s list of children. A child can have only one parent, but a parent can have any
number of children. A child can also have children of its own.
Example
This statement shows that the second child of the model named Car is the model named Tire.
put member("3D").model("Car").child[2]
-- model("Tire")
See also
addChild
,
parent
child (XML)
Usage
XMLnode
.child[
childNumber
]
Description
XML property; refers to the specified child node of a parsed XML document’s nested
tag structure.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...