Adobe Extending Flash Professional CS5 Manual de usuario Pagina 334

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 333
312
EXTENDING FLASH PROFESSIONAL
Item object
Last updated 5/2/2011
item.addData()
Availability
Flash MX 2004.
Usage
item.addData(name, type, data)
Parameters
name A string that specifies the name of the data.
type A string that specifies the type of data. Valid types are "integer", "integerArray", "double",
"doubleArray", "string", and "byteArray".
data The data to add to the specified library item. The type of data depends on the value of the type parameter. For
example, if type is "
integer", the value of data must be an integer, and so on.
Returns
Nothing.
Description
Method; adds specified data to a library item.
Example
The following example adds data named myData with an integer value of 12 to the first item in the library:
fl.getDocumentDOM().library.items[0].addData("myData", "integer", 12);
item.getData()
Availability
Flash MX 2004.
Usage
item.getData(name)
Parameters
name A string that specifies the name of the data to retrieve.
Returns
The data specified by the name parameter. The type of data returned depends on the type of stored data.
Description
Method; retrieves the value of the specified data.
Vista de pagina 333
1 2 ... 329 330 331 332 333 334 335 336 337 338 339 ... 564 565

Comentarios a estos manuales

Sin comentarios