Adobe Extending Flash Professional CS4 Manual do Utilizador Página 362

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 361
340
EXTENDING FLASH CS4 PROFESSIONAL
Parameter object
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.
Vista de página 361
1 2 ... 357 358 359 360 361 362 363 364 365 366 367 ... 559 560

Comentários a estes Manuais

Sem comentários