makeList()
387
log()
Usage
log(
number
)
Description
Math function (Lingo only); calculates the natural logarithm of a specified number.
In JavaScript syntax, use the Math object’s
log()
function.
Parameters
number
Required. A number from which the natural logarithm is calculated. This number must
be a decimal number greater than 0.
Example
This statement assigns the natural logarithm of 10.5 to the variable
Answer
.
Answer = log(10.5)
Example
This statement calculates the natural logarithm of the square root of the value
Number
and then
assigns the result to the variable
Answer
:
Answer = log(Number.sqrt)
makeList()
Usage
--Lingo syntax
parserObject
.makeList()
// JavaScript syntax
parserObject
.makeList();
Description
Function; returns a property list based on the XML document parsed using
parseString()
or
parseURL()
.
Parameters
None.
Example
This handler parses of an XML document and returns the resulting list:
-- Lingo syntax
on ConvertToList xmlString
parserObject = new(xtra "xmlparser")
errorCode = parserObj.parseString(xmlString)
errorString = parserObj.getError()
if voidP(errorString) then
parsedList = parserObj.makeList()
else
alert "Sorry, there was an error" && errorString
exit
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...