Equality Operator - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

The following example creates a new movie clip within the
created inside the movie clip called
to
and then populated with the current date.
true
this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
this.container_mc.createTextField("date_txt", this.getNextHighestDepth(),
0, 0, 100, 22);
this.container_mc.date_txt.autoSize = true;
this.container_mc.date_txt.text = new Date();
The dot (.) operator is used when targeting instances within the SWF file and when you need
to set properties and values for those instances.

== equality operator

expression1 == expression2
Tests two expressions for equality. The result is
The definition of equal depends on the data type of the parameter:
Numbers and Boolean values are compared by value and are considered equal if they have
the same value.
String expressions are equal if they have the same number of characters and the characters
are identical.
Variables representing objects, arrays, and functions are compared by reference. Two such
variables are equal if they refer to the same object, array, or function. Two separate arrays
are never considered equal, even if they have the same number of elements.
When comparing by value, if
ActionScript will attempt to convert the data type of
.
expression1
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
expression1 :
Object
function.
expression2 :
Object
function.
Returns
- The Boolean result of the comparison.
Boolean
container_mc
and
expression1
- A number, string, Boolean value, variable, object, array, or
- A number, string, Boolean value, variable, object, array, or
scope. Then a text field is
_root
. The text field's
autoSize
if the expressions are equal.
true
are different data types,
expression2
to match that of
expression2
property is set
Operators
145

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents