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

  • 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 393
372
EXTENDING FLASH CS4 PROFESSIONAL
Screen object
Example
The following example stores the parameters for the second screen in the outline to the parms variable and then assigns
the
some value value to the first property:
var parms = fl.getDocumentDOM().screenOutline.screens[1].parameters;
parms[0].value = "some value";
See also
Parameter object
screen.parentScreen
Availability
Flash MX 2004.
Usage
screen.parentScreen
Description
Read-only property; an object that represents the parent screen. If parentScreen is null, the screen is a top-level
screen.
Example
The following example stores the values for the childScreens and parentScreen properties in variables and then
shows those values and their parent/child relationship in the Output panel:
if(fl.getDocumentDOM().allowScreens) {
var myCurrent = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].name;
var myParent =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].parentScreen.name;
fl.trace(" The parent screen to "+myCurrent+" is "+myParent+". ");
}
screen.prevScreen
Availability
Flash MX 2004.
Usage
screen.prevScreen
Description
Read-only property; an object that represents the previous peer screen in the parent’s childScreens array. If there
isn’t a peer screen, the value is
null. See also screen.nextScreen.
Zobrazit stránku 393
1 2 ... 389 390 391 392 393 394 395 396 397 398 399 ... 559 560

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

Žádné komentáře