Example
The following example uses
another object, without storing the function in the object:
function myObject() {
}
function myMethod(obj) {
trace("this == obj? " + (this == obj));
}
var obj:Object = new myObject();
myMethod.call(obj, obj);
The
statement displays:
trace()
this == obj? true
See also
apply (Function.apply method)
Key
Object
|
+-Key
public class Key
extends
Object
The Key class is a top-level class whose methods and properties you can use without a
constructor. Use the methods of the Key class to build an interface that can be controlled by a
user with a standard keyboard. The properties of the Key class are constants representing the
keys most commonly used to control applications, such as Arrow keys, Page Up, and Page
Down.
Availability: ActionScript 1.0; Flash Lite 2.0
See also
ExtendedKey
370
ActionScript classes
to make a function behave as a method of
Function.call()
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?
Questions and answers