Adobe Extending Flash Professional CS5 Manual do Utilizador Página 529

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 565
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 528
507
EXTENDING FLASH PROFESSIONAL
Tools object
Last updated 5/2/2011
Usage
tools.activeTool
Description
Read-only property; returns the ToolObj object for the currently active tool.
Example
The following example saves an object that represents the currently active tool in the theTool variable:
var theTool = fl.tools.activeTool;
tools.altIsDown
Availability
Flash MX 2004.
Usage
tools.altIsDown
Description
Read-only property; a Boolean value that identifies if the Alt key is being pressed. The value is true if the Alt key is
pressed, and
false otherwise.
Example
The following example determines whether the Alt key is being pressed:
var isAltDown = fl.tools.altIsDown;
tools.constrainPoint()
Availability
Flash MX 2004.
Usage
tools.constrainPoint(pt1, pt2)
Parameters
pt1, pt2 Points that specify the starting-click point and the drag-to point.
Returns
A new adjusted or constrained point.
Vista de página 528
1 2 ... 524 525 526 527 528 529 530 531 532 533 534 ... 564 565

Comentários a estes Manuais

Sem comentários