EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 387

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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