Adobe Extending Flash Professional CS4 Manuale Utente Pagina 321

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 320
299
EXTENDING FLASH CS4 PROFESSIONAL
Item object
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.
Vedere la pagina 320
1 2 ... 316 317 318 319 320 321 322 323 324 325 326 ... 559 560

Commenti su questo manuale

Nessun commento