Adobe Extending Flash Professional CS4 Manual do Utilizador Página 142

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 141
120
EXTENDING FLASH CS4 PROFESSIONAL
Document object
bHeight A Boolean value that, when set to true, causes the method to make the heights of the selected items the same.
bUseDocumentBounds A Boolean value that, when set to true, causes the method to match the size of the objects to
the bounds of the document. Otherwise, the method uses the bounds of the largest object. The default is
false. This
parameter is optional.
Returns
Nothing.
Description
Method; makes the size of the selected objects the same.
Example
The following example matches the width of the selected objects only:
fl.getDocumentDOM().match(true,false);
The following example matches the height only:
fl.getDocumentDOM().match(false,true);
The following example matches the width only to the bounds of the document:
fl.getDocumentDOM().match(true,false,true);
See also
document.getAlignToDocument(), document.setAlignToDocument()
document.mouseClick()
Availability
Flash MX 2004.
Usage
document.mouseClick(position, bToggleSel, bShiftSel)
Parameters
position A pair of floating-point values that specify the x and y coordinates of the click in pixels.
bToggleSel A Boolean value that specifies the state of the Shift key: true for pressed; false for not pressed.
bShiftSel
A Boolean value that specifies the state of the application preference Shift select:
true
for on;
false
for off.
Returns
Nothing.
Description
Method; performs a mouse click from the Selection tool.
Example
The following example performs a mouse click at the specified location:
Vista de página 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 559 560

Comentários a estes Manuais

Sem comentários