Adobe Extending Flash Professional CS5 Manual do Utilizador Página 335

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 565
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 334
313
EXTENDING FLASH PROFESSIONAL
Item object
Last updated 5/2/2011
Example
The following example gets the value of the data named myData from the first item in the library and stores it in the
variable
libData:
var libData = fl.getDocumentDOM().library.items[0].getData("myData");
item.hasData()
Availability
Flash MX 2004.
Usage
item.hasData(name)
Parameters
name A string that specifies the name of the data to check for in the library item.
Returns
A Boolean value: true if the specified data exists; false otherwise.
Description
Method; determines whether the library item has the named data.
Example
The following example shows a message in the Output panel if the first item in the library contains data named myData:
if (fl.getDocumentDOM().library.items[0].hasData("myData")){
fl.trace("Yep, it's there!");
}
item.itemType
Availability
Flash MX 2004.
Usage
item.itemType
Description
Read-only property; a string that specifies the type of element. The value is one of the following: "undefined",
"component", "movie clip", "graphic", "button", "folder", "font", "sound", "bitmap", "compiled clip",
"screen", or "video". If this property is "video", you can determine the type of video; see videoItem.videoType.
Example
The following example shows the type of the specified library item in the Output panel:
fl.trace(fl.getDocumentDOM().library.items[0].itemType);
Vista de página 334
1 2 ... 330 331 332 333 334 335 336 337 338 339 340 ... 564 565

Comentários a estes Manuais

Sem comentários

Windmere Pequeños Utensilios De Cocina manuales de usuario

Empezando en K

Haga clic en el alfabeto a continuación para desplazarse a la lista completa de modelos que comienzan con esa letra

Modelos Tipo de documento
KD16
Manual de uso y cuidado    Windmere KD16 Use & Care Manual, 2 paginas