Adobe Extending Flash Professional CS5 Manuale Utente Pagina 163

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 162
141
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
document.setCustomStroke()
Availability
Flash MX 2004.
Usage
document.setCustomStroke(stroke)
Parameters
stroke A Stroke object.
Returns
Nothing.
Description
Method; sets the stroke settings for the Tools panel, Property inspector, and any selected shapes. This allows a script
to set the stroke settings before drawing the object, rather than drawing the object, selecting it, and changing the stroke
settings. It also lets a script change the Tools panel and Property inspector stroke settings.
Example
The following example changes the stroke thickness setting in the Tools panel, Property inspector, and any selected
shapes:
var stroke = fl.getDocumentDOM().getCustomStroke();
stroke.thickness += 2;
fl.getDocumentDOM().setCustomStroke(stroke);
See also
document.getCustomStroke()
document.setElementProperty()
Availability
Flash MX 2004.
Usage
document.setElementProperty(property, value)
Parameters
property A string that specifies the name of the Element property to set. For a complete list of properties and values,
see the Property summary table for the
Element object.
You can’t use this method to set values for read-only properties, such as element.elementType, element.top, or
element.left.
value An integer that specifies the value to set in the specified Element property.
Vedere la pagina 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 564 565

Commenti su questo manuale

Nessun commento