Adobe Extending Flash Professional CS5 Manuale Utente Pagina 191

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 190
169
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Description
Method; unlocks all locked elements on the currently selected frame.
Example
The following example unlocks all locked objects on the current frame:
fl.getDocumentDOM().unlockAllElements();
See also
element.locked
document.viewMatrix
Availability
Flash MX 2004.
Usage
document.viewMatrix
Description
Read-only property; a Matrix object. The viewMatrix is used to transform from object space to document space when
the document is in edit mode. The mouse location, as a tool receives it, is relative to the object that is currently being
edited. See
Matrix object.
For example, if you create a symbol, double-click to edit it, and draw with the PolyStar tool, the point (0,0) will be at
the registration point of the symbol. However, the drawingLayer object expects values in document space, so if you
draw a line from (0,0) using the drawingLayer, it will start at the upper left corner of the Stage. The
viewMatrix
property provides a way to transform from the space of the object being edited to document space.
Example
The following example gets the value of the viewMatrix property:
var mat = fl.getDocumentDOM().viewMatrix;
document.width
Availability
Flash MX 2004.
Usage
document.width
Description
Property; an integer that specifies the width of the document (Stage) in pixels.
Vedere la pagina 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 564 565

Commenti su questo manuale

Nessun commento