MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 616

Director scripting reference
Table of Contents

Advertisement

starts
Usage
-- Lingo syntax
string1 starts string2
// JavaScript syntax
string1.indexOf(string2) == 0;
Description
Operator; compares to determines whether
(
or 0).
FALSE
The string comparison is not sensitive to case or diacritical marks; a and Å are considered to be
the same.
This is a comparison operator with a precedence level of 1.
Example
This statement reports in the Message window whether the word Macromedia starts with the
string "Macro":
-- Lingo syntax
put("Macromedia" starts "Macro")
// JavaScript syntax
var string1 = "Macromedia";
put(string1.indexOf("Macro") == 0);
The result is 1, which is the numerical equivalent of
See also
contains
616
Chapter 13: Operators
starts with
string1
string2
.
TRUE
(
or 1) or not
TRUE

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

This manual is also suitable for:

Director mx 2004

Table of Contents