Skip to content

Latest commit

 

History

History
461 lines (231 loc) · 10.9 KB

What.md

File metadata and controls

461 lines (231 loc) · 10.9 KB

What’s new in the JavaScript API

The following section lists new objects, methods, and properties in Animate. It also lists changes in Flash CC, CS6, CS5.5, and CS5. If you have not used the JavaScript API before, you might want to skip this section and go directly to JavaScript API objects.

New methods and properties in Animate 2020

The following methods and properties for existing objects are new in Animate 2020:

New objects in Animate 2020

The following object is new in Flash CS6:

New methods and properties in Flash CC

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

  • Tween Object

    • Tween.getColorTransform( )

    • Tween.getFilters( )

    • Tween.getGeometricTransform()

    • Tween.getShape( )

    • Tween.duration

    • Tween.startFrame

    • Tween.tweenType

  • CompiledClipInstance object

    • CompiledClipInstance.backgroundColor

    • CompiledClipInstance.blendMode

    • CompiledClipInstance.brightness

    • CompiledClipInstance.cacheAsBitmap

    • CompiledClipInstance.colorAlphaAmount

    • CompiledClipInstance.colorAlphaPercent

    • CompiledClipInstance.colorBlueAmount

    • CompiledClipInstance.colorBluePercent

    • CompiledClipInstance.colorGreenAmount

    • CompiledClipInstance.colorGreenPercent

    • CompiledClipInstance.colorMode

    • CompiledClipInstance.colorRedAmount

    • CompiledClipInstance.colorRedPercent

    • CompiledClipInstance.filters

    • CompiledClipInstance.tintColor

    • CompiledClipInstance.tintPercent

    • CompiledClipInstance.useBackgroundColor

    • CompiledClipInstance.visible

  • Document object

    • Document.convertSelectionToBitmap()

    • Document.distributeToKeyframes()

    • Document.exportVideo()

    • Document.getPublishDocumentData()

    • Document.getTelemetryForSwf()

    • Document.importFile() showDialog and showImporterUI properties

    • Document.setPublishDocumenData()

  • Element object

    • Element.getPublishPersistentData()

    • Element.setPublishPersistentData()

  • flash object (fl)

    • Flash.addEventListener()prePublish, postPublish, selectionChanged, and dpiChanged events

    • fl.getThemeColor()

    • fl.getThemeColorParameters()

    • fl.getThemeFontInfo()

    • fl.setPrefBoolean()

    • fl.toggleBreakPoint()

    • fl.xmlPanel()

    • fl.xmlPanelFromString()

  • Frame object

    • Frame.convertToFrameByFrameAnimation()

    • Frame.getSoundEnvelope()

    • Frame.getSoundEnvelopeLimits()

    • Frame.setSoundEnvelope()

    • Frame.setSoundEnvelopeLimits()

    • Frame.isEmpty()

  • Item object

    • item.getPublishData()

    • item.setPublishData()

  • library object

    • library.unusedItems
  • swfPanel object

    • swfPanel.dpiScaleFactorX

    • swfPanel.dpiScaleFactorY

    • swfPanel.reload()

  • SymbolInstance object

    • SymbolInstance.brightness

    • SymbolInstance.tintColor

    • SymbolInstance.tintPercent

  • Timeline object

    • getBounds()

Dropped methods and properties in Flash CC

The following methods and properties for existing objects are dropped in Adobe Animate:

  • ActionsPanel.getClassForObject()

  • ActionsPanel.getScriptAssistMode()

  • ActionsPanel.setScriptAssistMode()

  • CompiledClipInstance.actionscript

  • fl.reloadEffects()

  • fl.resetPackagePaths()

  • document.activeEffect

  • document.allowScreens()

  • document.drawingLayer

  • document.importSWF()

  • document.loadCuePointXML()

  • document.packagePaths

  • document.saveAndCompact()

  • document.screenType

  • library.importEmbeddedSWF()

  • SymbolInstance.actionscript

New objects in Flash CS6

The following object is new in Flash CS6:

New methods and properties in Flash CS6

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

New methods and properties in Flash CS5 and CS5.5

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

  • Document object

    • document.debugMovie()

    • document.loadCuepointXML()

  • flash object (fl)

    • fl.languageCode

    • fl.toggleBreakpoint

  • Frame object

    • frame.convertMotionObjectTo2D()

    • frame.convertMotionObjectTo3D()

    • frame.getMotionObjectXML()

    • frame.hasMotionPath()

    • frame.isMotionObject()

    • frame.is3DMotionObject()

    • frame.selectMotionPath()

    • frame.setMotionObjectDuration()

    • frame.setMotionObjectXML()

    • frame.tweenInstanceName

  • Timeline object

    • timeline.createMotionObject()

    • timeline.libraryItem

    • timeline.removeMotionObject()

    • timeline.startPlayback

    • timeline.stopPlayback

The following methods and properties for existing objects are new in Flash Pro CS5.5:

  • SymbolInstance object

    • symbolInstance.bitmapRenderMode

    • symbolInstance.backgroundColor

    • symbolInstance.usesBackgroundColor

    • symbolInstance.visible

  • Timeline object

    • timeline.copyLayers()

    • timeline.cutLayers()

    • timeline.duplicateLayers()

    • timeline.pasteLayers()

  • flash object (fl)

    • fl.getSwfPanel()

    • fl.installedPlayers()

    • fl.publishCacheEnabled

    • fl.publishCacheDiskSizeMax

    • fl.publishCacheMemorySizeMax

    • fl.publishCacheMemoryEntrySizeLimit

    • fl.clearPublishCache()

  • swfPanel object

    • swfPanel.setFocus()

Other changes in Flash CS5 and CS5.5

The following methods and properties are updated in Flash CS5:

  • fl.openScript()

  • fl.publishDocument()

  • fontItem.embedRanges

  • fontItem.embeddedCharacters

  • fontItem.embedVariantGlyphs

The following objects and method are no longer available in Flash CS5:

  • Screen object

  • ScreenOutline object

  • document.canSaveAVersion()

  • document.revertToLastVersion()

  • document.saveAVersion()

  • document.synchronizeWithHeadVersion()

  • fl.downloadLatestVersion()

  • fl.revertDocumentToLastVersion()

  • fl.saveAVersionOfDocument()

  • fl.synchronizeDocumentWithHeadVersion()