Adobe Extending Flash Professional CS4 Manuale Utente Pagina 332

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 331
310
EXTENDING FLASH CS4 PROFESSIONAL
Layer object
Description
Property; a Boolean value that specifies the status of outlines for all objects in the layer. If set to true, all objects in the
layer appear only with outlines. If
false, objects appear as they were created.
Example
The following example makes all objects on the first layer appear only with outlines:
fl.getDocumentDOM().getTimeline().layers[0].outline = true;
layer.parentLayer
Availability
Flash MX 2004.
Usage
layer.parentLayer
Description
Property; a Layer object that represents the layer’s containing folder, guiding, or masking layer. The parent layer must
be a folder, guide, or mask layer that precedes the layer, or the
parentLayer of the preceding or following layer. Setting
the layer’s
parentLayer does not move the layer’s position in the list; trying to set a layer’s parentLayer to a layer
that would require moving it has no effect. Uses
null for a top-level layer.
Example
The following example uses two layers at the same level on the same timeline. The first layer (layers[0]) is converted
into a folder and then set as the parent folder of the second layer (
layers[1]). This action moves the second layer
inside the first layer.
var parLayer = fl.getDocumentDOM().getTimeline().layers[0];
parLayer.layerType = "folder";
fl.getDocumentDOM().getTimeline().layers[1].parentLayer = parLayer;
layer.visible
Availability
Flash MX 2004.
Usage
layer.visible
Description
Property; a Boolean value that specifies whether the layer’s objects on the Stage are shown or hidden. If set to true, all
objects in the layer are visible; if
false, they are hidden. The default value is true.
Vedere la pagina 331
1 2 ... 327 328 329 330 331 332 333 334 335 336 337 ... 559 560

Commenti su questo manuale

Nessun commento