Adobe Extending Flash Professional CS5 Instrukcja Użytkownika Strona 375

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 565
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 374
353
EXTENDING FLASH PROFESSIONAL
Parameter object
Last updated 5/2/2011
Example
The following example sets the first parameter for a Slide, which is the autoKeyNav parameter. To set the parameter
to one of its acceptable values (
true, false, or inherit) parameter.listIndex is set to the index of the item in the
list (0 for
true, 1 for false, 2 for inherit).
var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters;
parms[0].listIndex = 1;
parameter.name
Availability
Flash MX 2004.
Usage
parameter.name
Description
Read-only property; a string that specifies the name of the parameter.
Example
The following example shows the name of the fifth parameter for the selected component:
var parms = fl.getDocumentDOM().selection[0].parameters;
fl.trace("name: " + parms[4].name);
The following example shows the name of the fifth parameter for the specified screen:
var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters; fl.trace("name: " +
parms[4].name);
parameter.removeItem()
Availability
Flash MX 2004.
Usage
parameter.removeItem(index)
Parameters
index The zero-based integer index of the item to be removed from the screen or component property.
Returns
Nothing.
Description
Method; removes an element of the list, object, or array type of a screen or component parameter.
Przeglądanie stron 374
1 2 ... 370 371 372 373 374 375 376 377 378 379 380 ... 564 565

Komentarze do niniejszej Instrukcji

Brak uwag