Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 534

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 533
512
EXTENDING FLASH PROFESSIONAL
Tools object
Last updated 5/2/2011
var isShiftDown = fl.tools.shiftIsDown;
tools.snapPoint()
Availability
Flash MX 2004.
Usage
tools.snapPoint(pt)
Parameters
pt Specifies the location of the point for which you want to return a snap point.
Returns
A new point that may be adjusted or snapped to the nearest geometric object.
Description
Method; takes a point as input and returns a new point that may be adjusted or snapped to the nearest geometric object.
If snapping is disabled in the View menu in the Flash user interface, the point returned is the original point.
Example
The following example returns a new point that may be snapped to the nearest geometric object.
var theSnapPoint = fl.tools.snapPoint(pt1);
tools.toolObjs
Availability
Flash MX 2004.
Usage
tools.toolObjs
Description
Read-only property; an array of ToolObj objects (see ToolObj object).
Zobrazit stránku 533
1 2 ... 529 530 531 532 533 534 535 536 537 538 539 ... 564 565

Komentáře k této Příručce

Žádné komentáře