Example
The following example shows how to disable Contact Sensitive selection mode before making
a selection, and then how to reset it to its original value after making the selection.
var contact = fl.contactSensitiveSelection;
fl.contactSensitiveSelection = false;
// Insert selection code here.
fl.contactSensitiveSelection = contact;
fl.createDocument()
Availability
Flash MX 2004.
Usage
fl.createDocument( [docType] )
Parameters
A string that specifies the type of document to create. Acceptable values are
docType
,
, and
. The default value is
. This
"timeline"
"presentation"
"application"
"timeline"
parameter is optional.
Returns
The Document object for the newly created document, if the method is successful. If an error
occurs, the value is
.
undefined
Description
Method; opens a new document and selects it. Values for size, resolution, and color are the
same as the current defaults.
Example
The following example creates different types of documents.
// Create a timeline-based Flash document.
fl.createDocument();
fl.createDocument("timeline");
// Create a Slide Presentation document.
fl.createDocument("presentation");
// Create a Form Application document.
fl.createDocument("application");
flash object (fl)
231
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers