MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 439

Director scripting reference
Table of Contents

Advertisement

You would use it by passing in the values you wanted to add:
put AddNumbers(3, 4, 5, 6)
-- 18
put AddNumbers(5, 5)
-- 10
See also
getAt, param(), paramCount(),
paramCount()
Usage
the paramCount
Description
Function; indicates the number of parameters sent to the current handler.
Parameters
None.
Example
This statement sets the variable
current handler:
set counter = the paramCount
parseString()
Usage
parserObject.parseString(stringToParse)
Description
Function; used to parse an XML document that is already fully available to the Director movie.
The first parameter is the variable containing the parser object. The return value is
operation succeeds, or an error code number string if it fails. Failure is usually due to a problem
with the XML syntax or structure. Once the operation is complete, the parser object contains the
parsed XML data.
To parse XML at a URL, use
Parameters
stringToParse
Example
This statement parses the XML data in the text cast member XMLtext. Once the operation is
complete, the variable
errorCode = gParserObject.parseString(member("XMLtext"))
See also
getError()
(XML),
return (keyword)
counter
parseURL()
Required. Specifies the string of XML data to parse.
gParserObject
parseURL()
to the number of parameters that were sent to the
.
will contain the parsed XML data.
if the
<VOID>
parseString()
439

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents