May 2001
Intermediate to advanced
720 pages
23h 24m
English
arguments.callee Property — a reference to the function being executed
Flash 5
arguments.callee
Read/write
The callee property stores a reference to the
function currently executing. We may use this reference to execute
the current function again or to identify the current function
through comparison.
function someFunction ( ) {
trace(arguments.callee == someFunction); // Displays: true
}
// An unnamed recursive function
countToTen = function ( ) {
i++;
trace(i);
if (i < 10) {
arguments.callee( );
}
};Read now
Unlock full access