Adobe Extending Flash Professional CS5 Manual de usuario Pagina 85

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 84
63
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Returns
Nothing.
Description
Method; stores specified data with a document. Data is written to the FLA file and is available to JavaScript when the
file reopens.
Example
The following example adds an integer value of 12 to the current document:
fl.getDocumentDOM().addDataToDocument("myData", "integer", 12);
The following example returns the value of the data named "myData" and displays the result in the Output panel:
fl.trace(fl.getDocumentDOM().getDataFromDocument("myData"));
See also
document.getDataFromDocument(), document.removeDataFromDocument()
document.addDataToSelection()
Availability
Flash MX 2004.
Usage
document.addDataToSelection(name, type, data)
Parameters
name A string that specifies the name of the persistent data.
type Defines the type of data. Acceptable values are "integer", "integerArray", "double", "doubleArray",
"string", and "byteArray".
data The value to add. Valid types depend on the type parameter.
Returns
Nothing.
Description
Method; stores specified data with the selected object(s). Data is written to the FLA file and is available to JavaScript
when the file reopens. Only symbols and bitmaps support persistent data.
Example
The following example adds an integer value of 12 to the selected object:
fl.getDocumentDOM().addDataToSelection("myData", "integer", 12);
See also
document.removeDataFromSelection()
Vista de pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 564 565

Comentarios a estos manuales

Sin comentarios