What s new in the JavaScript API

 < Day Day Up > 

What's new in the JavaScript API

In Flash 8, several new top-level functions and objects have been added. In addition, some existing objects now have new methods or properties. These additions, along with other changes, are summarized below. Also, new samples are provided; see "Sample implementations" on page 19.

If you have not used the JavaScript API before, you might want to skip this section and go directly to "The Flash Document Object Model" on page 14.

New top-level methods

The following top-level method is new in Flash 8:

confirm()

The following top-level methods were implemented in Flash MX 2004 but are newly documented in this release:

alert() prompt()

New objects

The following objects are new in Flash 8:

Filter object

Project object

ProjectItem object

The following object was implemented in a Flash MX 2004 update release, but is newly documented in this release:

FLfile object

New methods and properties

The following methods and properties are new in Flash 8:

componentsPanel.reload() document.addFilter() document.changeFilterOrder() document.crop() document.deleteEnvelope() document.disableAllFilters() document.disableFilter() document.disableOtherFilters() document.enableAllFilters() document.enableFilter() document.exportPNG() document.getBlendMode() document.getFilters() document.getMetadata() document.importFile() document.intersect() document.punch() document.removeAllFilters() document.removeFilter() document.setBlendMode() document.setFilterProperty() document.setFilters() document.setMetadata() document.swapStrokeAndFill() document.union() document.zoomFactor element.layer element.selected fill.focalPoint fill.linearRGB fill.overflow fl.browseForFolderURL() fl.closeProject() fl.contactSensitiveSelection fl.createProject() fl.objectDrawingMode fl.getAppMemoryInfo() fl.getProject() fl.objectDrawingMode fl.showIdleMessage() frame.getCustomEase() frame.hasCustomEase frame.setCustomEase() frame.useSingleEaseCurve shape.isDrawingObject stroke.capType stroke.joinType stroke.miterLimit stroke.strokeHinting stroke.scaleType stroke.shapeFill symbolInstance.blendMode symbolInstance.cacheAsBitmap symbolInstance.filters symbolItem.scalingGrid symbolItem.scalingGridRect text.antiAliasSharpness text.antiAliasThickness textAttrs.letterSpacing text.fontRenderingMode videoItem.sourceFilePath videoItem.videoType xmlui.getControlItemElement() xmlui.getEnabled() xmlui.getVisible() xmlui.setControlItemElement() xmlui.setControlItemElements() xmlui.setEnabled() xmlui.setVisible()

Other changes

The following items have new parameters, additional acceptable values for existing parameters, or other implementation changes in Flash 8:

document.setSelectionBounds() document.setSelectionRect() instance.instanceType outputPanel.save() fl.openProject() text.border, text.useDeviceFonts, textAttrs.autoKern (no longer apply only to static text)

Deprecated properties

The following property is deprecated in this release:

textAttrs.characterSpacing (recommended property to use is textAttrs.letterSpacing)

     < Day Day Up > 


    Developing Extensions for Macromedia Flash 8
    Developing Extensions for Macromedia Flash 8
    ISBN: 032139416X
    EAN: 2147483647
    Year: 2005
    Pages: 81

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net