What's new in the JavaScript API

In Flash CS3, several objects have been added. In addition, some existing objects now have new methods or properties. These additions, along with other changes, are summarized below.

If you have not used the JavaScript API before, you might want to skip this section and go directly to the Document Object Model (see The Flash Document Object Model).

New objects

The following objects are new in Flash CS3:

actionsPanel object

compilerErrors object

Oval object

Rectangle object

New methods and properties

The following methods and properties for existing objects are new in Flash CS3:

document.as3AutoDeclare

document.as3Dialect

document.as3ExportFrame

document.as3StrictMode

document.as3WarningsMode

document.asVersion

document.canSaveAVersion()

document.docClass

document.getMobileSettings()

document.getPlayerVersion()

document.id

document.resetOvalObject()

document.resetRectangleObject()

document.revertToLastVersion()

document.saveAVersion()

document.setMobileSettings()

document.setOvalObjectProperty()

document.setPlayerVersion()

document.setRectangleObjectProperty()

document.synchronizeWithHeadVersion()

element.getTransformationPoint()

element.rotation

element.scaleX

element.scaleY

element.setTransformationPoint()

element.skewX

element.skewY

element.transformX

element.transformY

element.x

element.y

filter.enabled

fl.actionsPanel

fl.as3PackagePaths

fl.addEventListener()

fl.closeAllPlayerDocuments()

fl.compilerErrors

fl.clipCopyString()

fl.downloadLatestVersion()

fl.packagePaths

fl.findDocumentDOM()

fl.findObjectInDocByName()

fl.findObjectInDocByType()

fl.removeEventListener()

fl.revertDocumentToLastVersion()

fl.resetPackagePaths()

fl.resetAS3PackagePaths()

fl.saveAVersionOfDocument()

fl.scriptURI

fl.selectElement()

fl.selectTool()

fl.synchronizeDocumentWithHeadVersion()

item.linkageBaseClass

shape.isOvalObject

shape.isRectangleObject

timeline.copyMotion()

timeline.copyMotionAsAS3()

timeline.pasteMotion()

Other changes

The following methods have new parameters in Flash CS3:

document.addNewText()

fl.closeAll()

The following property is deprecated:

stroke.breakAtCorners

The mm_jsapi.h file, used when implementing Flash extensibility files (see C-Level Extensibility), has changed.