Adobe Extending Flash Professional CS5 Manual de usuario Pagina 440

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 439
418
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
Usage
symbolInstance.bitmapRenderMode
Description
Property; a string that sets the display type for the symbol.
Acceptable values include:
“none”
“cache” - sets the symbol to be cached as a bitmap by Flash Player at runtime.
“export” - sets the symbol to be exported as a bitmap when the SWF is compiled.
The older symbolInstance.cacheAsBitmap” on page 419 property is similar to this property, but it offers fewer
choices since it's a boolean. In the future, the cacheAsBitmap property may be deprecated, so users should switch to
this new property. The true/false options in the boolean
cacheAsBitmap property are the same as the "cache" / "none"
values for this new property.
Example
The following example assigns the symbol’s bitmapRenderMode to “export”:
var symbol = fl.getDocumentDOM().selection[0];
fl.trace(symbol.bitmapRenderMode);
symbol.bitmapRenderMode = "export";
symbolInstance.blendMode
Availability
Flash 8.
Usage
symbolInstance.blendMode
Description
Property; a string that specifies the blending mode to be applied to a movie clip symbol. Acceptable values are
"normal", "layer", "multiply", "screen", "overlay", "hardlight", "lighten", "darken", "difference",
"add", "subtract", "invert", "alpha", and "erase".
Example
The following example sets the blending mode for the first movie clip symbol in the first frame on the first level to add:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].blendMode = "add";
See also
document.setBlendMode()
Vista de pagina 439
1 2 ... 435 436 437 438 439 440 441 442 443 444 445 ... 564 565

Comentarios a estos manuales

Sin comentarios