Adobe Extending Flash Professional CS4 Instrukcja Użytkownika Strona 524

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 560
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 523
502
EXTENDING FLASH CS4 PROFESSIONAL
Tools object
Description
Method; takes two points and returns a new adjusted or constrained point. If the Shift key is pressed when the
command is run, the returned point is constrained to follow either a 45º constrain (useful for something such as a line
with an arrowhead) or to constrain an object to maintain its aspect ratio (such as pulling out a perfect square with the
Rectangle tool).
Example
The following example returns a constrained point:
pt2 = fl.tools.constrainPoint(pt1, tempPt);
tools.ctlIsDown
Availability
Flash MX 2004.
Usage
tools.ctlIsDown
Description
Read-only property; a Boolean value that is true if the Control key is pressed; false otherwise.
Example
The following example determines whether the Control key is being pressed:
var isCtrldown = fl.tools.ctrlIsDown;
tools.getKeyDown()
Availability
Flash MX 2004.
Usage
tools.getKeyDown()
Parameters
None.
Returns
The integer value of the key.
Description
Method; returns the most recently pressed key.
Przeglądanie stron 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 559 560

Komentarze do niniejszej Instrukcji

Brak uwag