Adobe Extending Flash Professional CS4 Manual de usuario Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 560
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 40
19
EXTENDING FLASH CS4 PROFESSIONAL
Top-Level Functions and Methods
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()
keyUp()
Availability
Flash MX 2004.
Usage
function keyUp() {
// statements
}
Parameters
None.
Returns
Nothing.
Description
Function; called when the extensible tool is active and a key is released.
Example
The following example displays a message in the Output panel when the extensible tool is active and a key is released.
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 559 560

Comentarios a estos manuales

Sin comentarios