map()
389
makeSubList()
Usage
XMLnode
.makeSubList()
Description
Function; returns a property list from a child node the same way that
makeList()
returns the
root of an XML document in list format.
Parameters
None.
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
</e1>
This statement returns a property list made from the contents of the first child of the tag
<e1>
:
put gparser.child[ 1 ].child[ 1 ].makeSubList()
-- ["tagName": ["!ATTRIBUTES": ["attr1": "val1", "attr2": "val2"]]]
See also
makeList()
map()
Usage
map(
targetRect
,
sourceRect
,
destinationRect
)
map(
targetPoint
,
sourceRect
,
destinationRect
)
Description
Function; positions and sizes a rectangle or point based on the relationship of a source rectangle
to a target rectangle.
The relationship of the
targetRect
to the
sourceRect
governs the relationship of the result of
the function to the
destinationRect
.
Parameters
targetRect
Required. The target rectangle in the relationship.
targetPoint
Required. The target point in the relationship.
sourceRect
Required. The source rectangle in the relationship.
destinationRect
Required. The destination rectangle.
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...