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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 565
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 187
166
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Usage
document.translate3DCenter(xyzCoordinate)
Parameters
xyzCoordinate An XYZ coordinate that specifies the center point for 3D rotation or translation.
Returns
Nothing.
Description
Method: sets the XYZ position around which the selection is translated or rotated. This method is available only for
movie clips.
Example
The following example specifies the XYZ axes for 3D translation:
fl.getDocumentDOM().translate3DCenter({x:180, y:18,z:-30});
document.translate3DSelection()
Availability
Flash CS4 Professional.
Usage
document.translate3DSelection(xyzCoordinate, bGlobalTransform)
Parameters
xyzCoordinate An XYZ coordinate that specifies the axes for 3D translation.
bGlobalTransform A Boolean value that specifies whether the transformation mode should be global (true) or local
(
false).
Returns
Nothing.
Description
Method: applies a 3D translation to the selection. This method is available only for movie clips.
Example
In the following example, the selection is first translated relative to the stage (globally) and then relative to itself
(locally).
var myDocument = fl.getDocumentDOM();
myDocument.translate3DSelection({x:52.0, y:0, z:0}, true);
myDocument.translate3DSelection({x:52.0, y:0, z:-55.2}, false);
See also
document.translate3DCenter()
Vista de página 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 564 565

Comentários a estes Manuais

Sem comentários