Adobe Extending Flash Professional CS5 Instrukcja Użytkownika Strona 386

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 565
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 385
364
EXTENDING FLASH PROFESSIONAL
presetItem object
Last updated 5/2/2011
presetItem.name
Availability
Flash CS4 Professional.
Usage
presetItem.name
Description
Read-only property: a string that represents the name of the preset or folder, without path information.
Example
See presetItem.path.
presetItem.open
Availability
Flash CS4 Professional.
Usage
presetItem.open
Description
Read-only property: specifies whether a folder in the Motion Presets panel is currently expanded (true) or not
(
false).
This property is true if the item is not a folder. To determine if an item is a folder or a preset, use presetItem.isFolder.
Example
The following example displays information on whether folders in the Motion Presets panel are expanded or collapsed:
fl.outputPanel.clear();
var presetItemArray=fl.presetPanel.items;
for (i=0;i<presetItemArray.length; i++){
var presetItem = presetItemArray[i];
if (presetItem.isFolder) {
var status = presetItem.open ? "Open" : "Closed"
fl.trace(presetItem.level + "-" + presetItem.name +" folder is " + status);
}
}
presetItem.path
Availability
Flash CS4 Professional.
Przeglądanie stron 385
1 2 ... 381 382 383 384 385 386 387 388 389 390 391 ... 564 565

Komentarze do niniejszej Instrukcji

Brak uwag