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
document.addDataToDocument()
document.addDataToSelection()
document.addFilter()
document.addItem()
document.addNewLine()
document.addNewOval()
document.addNewPublishProfile()
document.addNewRectangle()
document.addNewScene()
document.addNewText()
document.align()
document.allowScreens()
document.arrange()
document.breakApart()
Description
Stores specified data with a document.
Stores specified data with the selected object(s).
Applies a filter to the selected objects.
Adds an item from any open document or library to
the specified Document object.
Adds a new path between two points.
Adds a new oval in the specified bounding
rectangle.
Adds a new publish profile and makes it the current
one.
Adds a new rectangle or rounded rectangle, fitting
it into the specified bounds.
Adds a new scene
(Timeline
scene after the currently selected scene and makes
the new scene the currently selected scene.
Inserts a new empty text field.
Aligns the selection.
Use this method before using the
document.screenOutline
Arranges the selection on the Stage.
Performs a break-apart operation on the current
selection.
Objects
object) as the next
property.
Document object
61
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?