Adobe Extending Flash Professional CS4 Manuale Utente Pagina 156

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 155
134
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Usage
document.rotateSelection(angle [, rotationPoint])
Parameters
angle A floating-point value that specifies the angle of the rotation.
rotationPoint A string that specifies which side of the bounding box to rotate. Acceptable values are "top right",
"top left", "bottom right", "bottom left", "top center", "right center", "bottom center", and "left
center". If unspecified, the method uses the transformation point. This parameter is optional.
Returns
Nothing.
Description
Method; rotates the selection by a specified number of degrees. The effect is the same as using the Free Transform tool
to rotate the object.
Example
The following example rotates the selection by 45º around the transformation point:
fl.getDocumentDOM().rotateSelection(45);
The following example rotates the selection by 45º around the lower-left corner:
fl.getDocumentDOM().rotateSelection(45, "bottom left");
document.save()
Availability
Flash MX 2004.
Usage
document.save([bOkToSaveAs])
Parameters
bOkToSaveAs An optional parameter that, if true or omitted, and the file was never saved, opens the Save As dialog
box. If
false and the file was never saved, the file is not saved.
Returns
A Boolean value: true if the save operation completes successfully; false otherwise.
Description
Method; saves the document in its default location. This method is equivalent to selecting File > Save.
To specify a name for the file (instead of saving it with the same name), use fl.saveDocument().
Note: If the file is new and has not been modified or saved, or if the file has not been modified since the last time it was
saved, this method has no effect and
false is returned. To allow an unsaved or unmodified file to be saved, use
document.saveAndCompact() or fl.saveDocumentAs().
Vedere la pagina 155
1 2 ... 151 152 153 154 155 156 157 158 159 160 161 ... 559 560

Commenti su questo manuale

Nessun commento