Document object
61
Document object
Availability
Flash MX 2004.
Description
The Document object represents the Stage. That is, only FLA files are considered documents.
Method summary for the Document object
You can use the following methods with the Document object.
Method
Description
document.addDataToDocument()
Stores specified data with a document.
document.addDataToSelection()
Stores specified data with the selected object(s).
document.addFilter()
Applies a filter to the selected objects.
document.addItem()
Adds an item from any open document or library to
the specified Document object.
document.addNewLine()
Adds a new path between two points.
document.addNewOval()
Adds a new oval in the specified bounding
rectangle.
document.addNewPublishProfile()
Adds a new publish profile and makes it the current
one.
document.addNewRectangle()
Adds a new rectangle or rounded rectangle, fitting
it into the specified bounds.
document.addNewScene()
Adds a new scene (
Timeline object
) as the next
scene after the currently selected scene and makes
the new scene the currently selected scene.
document.addNewText()
Inserts a new empty text field.
document.align()
Aligns the selection.
document.allowScreens()
Use this method before using the
document.screenOutline
property.
document.arrange()
Arranges the selection on the Stage.
document.breakApart()
Performs a break-apart operation on the current
selection.
Objects
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...