keyDown()

 < Day Day Up > 

Availability

Flash MX 2004.

Usage

function keyDown() {   // statements }

Parameters

None.

Returns

Nothing.

Description

Function; called when the extensible tool is active and the user presses a key. The script should call tools.getKeyDown() to determine which key was pressed.

Example

The following example displays information about which key was pressed when the extensible tool is active and the user presses a key.

function keyDown() {   fl.trace("key " + fl.tools.getKeyDown() + " was pressed"); }

See also

keyUp(), tools.getKeyDown()

     < Day Day Up > 


    Developing Extensions for Macromedia Flash 8
    Developing Extensions for Macromedia Flash 8
    ISBN: 032139416X
    EAN: 2147483647
    Year: 2005
    Pages: 81

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net