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

  • 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 362
341
EXTENDING FLASH CS4 PROFESSIONAL
Parameter object
Example
The following example removes the element at index 1 from the labelPlacement parameter of a component:
// Select an instance of a Button component on the Stage.
var parms = fl.getDocumentDOM().selection[0].parameters;
var values = parms[2].value;
fl.trace("--Original--");
for(var prop in values){
fl.trace("labelPlacement value = " + values[prop].value);
}
parms[2].removeItem(1);
var newValues = parms[2].value;
fl.trace("--After Removing Item--");
for(var prop in newValues){
fl.trace("labelPlacement value = " + newValues[prop].value);
}
The following example removes the element at index 1 from the autoKeyNav parameter of a screen:
// Open a presentation document.
var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters;
var values = parms[0].value;
fl.trace("--Original--");
for(var prop in values){
fl.trace("autoKeyNav value = " + values[prop].value);
}
parms[0].removeItem(1);
var newValues = parms[0].value;
fl.trace("--After Removing Item--");
for(var prop in newValues){
fl.trace("autoKeyNav value = " + newValues[prop].value);
}
parameter.value
Availability
Flash MX 2004.
Usage
parameter.value
Description
Property; corresponds to the Value field in the Parameters tab of the Component inspector, the Parameters tab of the
Property inspector, or the screen Property inspector. The type of the
value property is determined by the valueType
property for the parameter (see
parameter.valueType).
Zobrazit stránku 362
1 2 ... 358 359 360 361 362 363 364 365 366 367 368 ... 559 560

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

Žádné komentáře