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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 94
73
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Usage
document.align(alignmode [, bUseDocumentBounds])
Parameters
alignmode A string that specifies how to align the selection. Acceptable values are "left", "right", "top",
"bottom", "vertical center", and "horizontal center".
bUseDocumentBounds A Boolean value that, if set to true, causes the method to align to the bounds of the document.
Otherwise, the method uses the bounds of the selected objects. The default is
false. This parameter is optional.
Returns
Nothing.
Description
Method; aligns the selection.
Example
The following example aligns objects to the left and to the Stage. This is equivalent to turning on the To Stage setting
in the Align panel and clicking the Align to Left button:
fl.getDocumentDOM().align("left", true);
See also
document.distribute(), document.getAlignToDocument(), document.setAlignToDocument()
document.allowScreens()
Availability
Flash MX 2004.
Usage
document.allowScreens()
Parameters
None.
Returns
A Boolean value: true if document.screenOutline can be used safely; false otherwise.
Description
Method; use before using the document.screenOutline property. If this method returns the value true, you can
safely access
document.screenOutline; Flash displays an error if you access document.screenOutline in a
document without screens.
Example
The following example determines whether screens methods can be used in the current document:
Vista de página 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 559 560

Comentários a estes Manuais

Sem comentários