This example shows a significant difference between use of the
Boolean class. The
Boolean()
a Boolean object. Boolean values are compared by value, and Boolean objects are compared by
reference.
// Variables representing Boolean values are compared by value
var a:Boolean = Boolean("a"); // a is true
var b:Boolean = Boolean(1); // b is true
trace(a==b); // true
// Variables representing Boolean objects are compared by reference
var a:Boolean = new Boolean("a"); // a is true
var b:Boolean = new Boolean(1); // b is true
trace(a == b); // false
See also
Boolean
call function
call(frame)
Deprecated since Flash Player 5. This action was deprecated in favor of the
statement.
Executes the script in the called frame without moving the playhead to that frame. Local
variables do not exist after the script executes.
If variables are not declared inside a block (
call() action, the variables are local and expire at the end of the current list.
If variables are not declared inside a block and the current action list was not executed
with the call() action, the variables are interpreted as Timeline variables.
Availability: ActionScript 1.0; Flash Player 4
Parameters
- The label or number of a frame in the Timeline.
frame:Object
See also
function statement
function creates a Boolean value, and the Boolean class creates
,
call (Function.call method)
Boolean()
) but the action list was executed with a
{}
function and the
function
Global Functions
49
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?