03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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.

Parameters<br />

thisObject:Object - An object that specifies the value of thisObject within the function<br />

body.<br />

parameter1:Object [optional] - A parameter to be passed to the myFunction. You can<br />

specify zero or more parameters.<br />

Returns<br />

Example<br />

The following example uses Function.call() to make a function behave as a method of<br />

another object, without storing the function in the object:<br />

function myObject() {<br />

}<br />

function myMethod(obj) {<br />

trace("this == obj? " + (this == obj));<br />

}<br />

var obj:Object = new myObject();<br />

myMethod.call(obj, obj);<br />

The trace() statement displays:<br />

this == obj? true<br />

See also<br />

apply (Function.apply method)<br />

Key<br />

Object<br />

|<br />

+-Key<br />

public class Key<br />

extends Object<br />

The Key class is a top-level class whose methods <strong>and</strong> properties you can use without a<br />

constructor. Use the methods of the Key class to build an interface that can be controlled by a<br />

user with a st<strong>and</strong>ard keyboard. The properties of the Key class are constants representing the<br />

keys most commonly used to control applications, such as Arrow keys, Page Up, <strong>and</strong> Page<br />

Down.<br />

See also<br />

ExtendedKey<br />

344 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!