640
Chapter 14: Properties
The default value for this property is vector(1.0, 0.0, 0.0).
Example
This statement sets the
attenuation
property of the light named HouseLight to the vector
(.5, 0, 0), darkening it slightly.
member("3d world").light("HouseLight").attenuation = \
vector(.5, 0, 0)
See also
color (light)
attributeName
Usage
XMLnode.
attributeName[
attributeNumber
]
Description
XML property; returns the name of the specified child node of a parsed XML document.
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
here is some text
</e1>
•
This Lingo returns the name of the first attribute of the tag called
tagName
:
put gParserObject.child[1].child[1].attributeName[1]
-- "attr1"
See also
attributeValue
attributeValue
Usage
XMLnode
.attributeValue[
attributeNameOrNumber
]
Description
XML property; returns the value of the specified child node of a parsed XML document.
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
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...