Adobe Extending Flash Professional CS4 Manual de usuario Pagina 393

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 560
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 392
371
EXTENDING FLASH CS4 PROFESSIONAL
Screen object
Example
The following example checks to see if the current document allows screens (because it is a slide or form document).
Then, it assigns the
name value of the first child screen in the array to the myName variable and opens the Output panel
to show the name of the screen:
var myChildren = new Array();
if(fl.getDocumentDOM().allowScreens) {
var myName = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name;
fl.trace("The name of the screen is "+myName+". ");
}
screen.nextScreen
Availability
Flash MX 2004.
Usage
screen.nextScreen
Description
Read-only property; an object that represents the next peer screen in the parent’s childScreens array. That is,
screen.nextScreen is found by moving down an array of child screens to the next screen in the array. See
screen.prevScreen.
If there isn’t a peer screen, the value is null.
Example
The following example first checks to see if the current document is a slide or form, and if it is, retrieves and shows the
sequence of screens in the Output panel:
if(fl.getDocumentDOM().allowScreens) {
var myCurrent = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name;
var myNext = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].nextScreen.name;
fl.trace(" The next screen to "+myCurrent+" is "+myNext+". ");
}
screen.parameters
Availability
Flash MX 2004.
Usage
screen.parameters
Description
Read-only property; an array of ActionScript 2.0 properties that are accessible from the screen Property inspector.
Vista de pagina 392
1 2 ... 388 389 390 391 392 393 394 395 396 397 398 ... 559 560

Comentarios a estos manuales

Sin comentarios