03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

inequality operator<br />

expression1 expression2<br />

Deprecated since Flash Player 5. This operator has been deprecated. <strong>Adobe</strong> recommends that<br />

you use the != (inequality) operator.<br />

Tests for the exact opposite of the equality (==) operator. If expression1 is equal to<br />

expression2, the result is false. As with the equality (==) operator, the definition of equal<br />

depends on the data types being compared:<br />

■ Numbers, strings, <strong>and</strong> Boolean values are compared by value.<br />

■ Objects, arrays, <strong>and</strong> functions are compared by reference.<br />

■ Variables are compared by value or by reference depending on their type.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 2<br />

Oper<strong>and</strong>s<br />

expression1 : Object - A number, string, Boolean value, variable, object, array, or<br />

function.<br />

expression2 : Object - A number, string, Boolean value, variable, object, array, or<br />

function.<br />

Returns<br />

Boolean - The Boolean result of the comparison.<br />

See also<br />

!= inequality operator<br />

instanceof operator<br />

object instanceof classConstructor<br />

Tests whether object is an instance of classConstructor or a subclass of<br />

classConstructor. The instanceof operator does not convert primitive types to wrapper<br />

objects. For example, the following code returns true:<br />

new String("Hello") instanceof String;<br />

Whereas the following code returns false:<br />

"Hello" instanceof String;<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

172 <strong>ActionScript</strong> language elements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!