Document.getdatafromdocument() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Returns the stroke object of the selected shape or, if specified, of the toolbar and Property
inspector. See
document.setCustomStroke()
Example
The following example returns the current stroke settings of the selection and changes the stroke
thickness to 2:
var stroke = fl.getDocumentDOM().getCustomStroke("selection");
stroke.thickness = 2;
fl.getDocumentDOM().setCustomStroke(stroke);
The following example returns the current stroke settings of the toolbar and Property inspector
and sets the stroke color to red:
var stroke = fl.getDocumentDOM().getCustomStroke("toolbar");
stroke.color = "#FF0000";
fl.getDocumentDOM().setCustomStroke(stroke);

document.getDataFromDocument()

Availability
Flash MX 2004.
Usage
document.getDataFromDocument( name )
Parameters
A string that specifies the name of the data to return.
name
Returns
The specified data.
Description
Method; retrieves the value of the specified data. The type returned depends on the type of data
that was stored. See
document.removeDataFromDocument()
Example
The following example adds an integer value of 12 to the current document and uses this method
to display the value in the Output panel:
fl.getDocumentDOM().addDataToDocument("myData", "integer", 12);
fl.trace(fl.getDocumentDOM().getDataFromDocument("myData"));
92
Chapter 3: Objects
document.addDataToDocument()
.
.
,
document.documentHasData()
, and

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents