User Guide
Global Functions 49
This example shows a significant difference between use of the Boolean() function and the
Boolean class. The
Boolean() function creates a Boolean value, and the Boolean class creates
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 function
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 ({}) but the action list was executed with a
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
frame:Object - The label or number of a frame in the Timeline.
See also
function statement, call (Function.call method)