Adobe Extending Flash Professional CS4 Manuale Utente Pagina 159

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 158
137
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Example
The following example expands the width of the current selection to double the original width and shrinks the height
to half:
fl.getDocumentDOM().scaleSelection(2.0, 0.5);
The following example flips the selection vertically:
fl.getDocumentDOM().scaleSelection(1, -1);
The following example flips the selection horizontally:
fl.getDocumentDOM().scaleSelection(-1, 1);
The following example scales the selection vertically by 1.9 from the top center:
fl.getDocumentDOM().scaleSelection(1, 1.90, 'top center');
document.screenOutline
Availability
Flash MX 2004.
Usage
document.screenOutline
Description
Read-only property; the current ScreenOutline object for the document. Before accessing the object for the first time,
make sure to use
document.allowScreens() to determine whether the property exists.
Example
The following example displays the array of values in the screenOutline property:
var myArray = new Array();
for(var i in fl.getDocumentDOM().screenOutline) {
myArray.push(" "+i+" : "+fl.getDocumentDOM().screenOutline[i]) ;
}
fl.trace("Here is the property dump for screenOutline: "+myArray);
See also
document.allowScreens(), ScreenOutline object
document.selectAll()
Availability
Flash MX 2004.
Usage
document.selectAll()
Vedere la pagina 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 559 560

Commenti su questo manuale

Nessun commento