Document.name; Document.optimizecurves() - 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

For information on making a selection, see
document.mouseClick()
Example
The following example moves the selected item 62 pixels to the right and 84 pixels down:
flash.getDocumentDOM().moveSelectionBy({x:62, y:84});

document.name

Availability
Flash MX 2004.
Usage
document.name
Description
Read-only property; a string that represents the name of a document (FLA file).
Example
The following example sets the variable
documents array:
var fileName = flash.documents[0].name;
The following example displays the names of all the open documents in the Output panel:
var openDocs = fl.documents;
for(var i=0;i < opendocs.length; i++){
fl.trace(i + " " + opendocs[i].name +"\n");
}

document.optimizeCurves()

Availability
Flash MX 2004.
Usage
document.optimizeCurves( smoothing
Parameters
An integer in the range from 0 to 100, with 0 specifying no smoothing, and 100
smoothing
specifying maximum smoothing.
bUseMultiplePasses
should use multiple passes, which is slower but produces a better result. This parameter has the
same effect as clicking the Use multiple passes button in the Optimize Curves dialog box.
Returns
Nothing.
document.setSelectionRect()
,
document.mouseDblClk()
fileName
,
bUseMultiplePasses )
A Boolean value that, when set to
, and the
Element
to the filename of the first document in the
, indicates that the method
true
,
object.
Document object
103

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents