Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 330

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 329
308
EXTENDING FLASH CS4 PROFESSIONAL
Layer object
var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames;
var n = frameArray.length;
for (i=0; i<n; i++) {
if (i==frameArray[i].startFrame) {
alert("Keyframe at: " + i);
}
}
layer.height
Availability
Flash MX 2004.
Usage
layer.height
Description
Property; an integer that specifies the percentage layer height; equivalent to the Layer height value in the Layer
Properties dialog box. Acceptable values represent percentages of the default height: 100, 200, or 300.
Example
The following example stores the percentage value of the first layer’s height setting:
var layerHeight = fl.getDocumentDOM().getTimeline().layers[0].height;
The following example sets the height of the first layer to 300 percent:
fl.getDocumentDOM().getTimeline().layers[0].height = 300;
layer.layerType
Availability
Flash MX 2004.
Usage
layer.layerType
Description
Property; a string that specifies the current use of the layer; equivalent to the Type setting in the Layer Properties dialog
box. Acceptable values are
"normal", "guide", "guided", "mask", "masked", and "folder".
Example
The following example sets the first layer in the timeline to type folder:
fl.getDocumentDOM().getTimeline().layers[0].layerType = "folder";
Zobrazit stránku 329
1 2 ... 325 326 327 328 329 330 331 332 333 334 335 ... 559 560

Komentáře k této Příručce

Žádné komentáře