Document.setcustomstroke(); Document.setelementproperty() - 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

Example
The following example changes the color of the fill color swatch in the toolbar, Property
inspector, and any selected shapes to white:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fill.style = "solid";
fl.getDocumentDOM().setCustomFill(fill);

document.setCustomStroke()

Availability
Flash MX 2004.
Usage
document.setCustomStroke( stroke )
Parameters
A
Stroke
stroke
Returns
Nothing.
Description
Method; sets the stroke settings for the toolbar, Property inspector, and any selected shapes. This
allows a script to set the stroke settings before drawing the object, rather than drawing the object,
selecting it, and changing the stroke settings. It also lets a script change the toolbar and Property
inspector stroke settings. See
Example
The following example changes the stroke thickness setting in the toolbar, Property inspector, and
any selected shapes:
var stroke = fl.getDocumentDOM().getCustomStroke();
stroke.thickness += 2;
fl.getDocumentDOM().setCustomStroke(stroke);

document.setElementProperty()

Availability
Flash MX 2004.
Usage
document.setElementProperty( property
Parameters
A string that specifies the name of the Element property to set. For a complete list of
property
properties and values, see
116
Chapter 3: Objects
object.
document.getCustomStroke()
"Property summary for the Element object" on page
.
,
value )
149.

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?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents