Adobe Extending Flash Professional CS4 Manuale Utente Pagina 525

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 524
503
EXTENDING FLASH CS4 PROFESSIONAL
Tools object
Example
The following example displays the integer value of the most recently pressed key:
var theKey = fl.tools.getKeyDown();
fl.trace(theKey);
tools.mouseIsDown
Availability
Flash MX 2004.
Usage
tools.mouseIsDown
Description
Read-only property; a Boolean value that is true if the left mouse button is currently down; false otherwise.
Example
The following example determines whether the left mouse button is pressed.
var isMouseDown = fl.tools.mouseIsDown;
tools.penDownLoc
Availability
Flash MX 2004.
Usage
tools.penDownLoc
Description
Read-only property; a point that represents the position of the last mouse-down event on the Stage. The
tools.penDownLoc property comprises two properties, x and y, corresponding to the x,y location of the mouse
pointer.
Example
The following example determines the position of the last mouse-down event on the Stage and displays the x and y
values in the Output panel:
var pt1 = fl.tools.penDownLoc;
fl.trace("x,y location of last mouseDown event was " + pt1.x + ", " + pt1.y)
See also
tools.penLoc
Vedere la pagina 524
1 2 ... 520 521 522 523 524 525 526 527 528 529 530 ... 559 560

Commenti su questo manuale

Nessun commento