# jsfl-docs **Repository Path**: YJTXJH/jsfl-docs ## Basic Information - **Project Name**: jsfl-docs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-07 - **Last Updated**: 2025-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- title: Animate JSAPI Documentation description: This is the home page of Animate APIs --- # Animate JSAPI Documentation ## Table of Contents - [Introduction](#introduction) * [Working with the JavaScript API](#working-with-the-javascript-api) * [Creating JSFL files](#creating-jsfl-files) * [Saving JSFL files](#saving-jsfl-files) * [Running scripts](#running-scripts) * [What’s new in the JavaScript API](#whats-new-in-the-javascript-api) * [JavaScript API objects](#javascript-api-objects) * [Specifying the target of an action](#specifying-the-target-of-an-action) * [Summary of the DOM structure](#summary-of-the-dom-structure) * [Sample implementations](#sample-implementations) - [Top-Level Functions and Methods](#top-level-functions-and-methods-1) - [actionsPanel Object](#actionspanel-object) - [bitmapInstance Object](#bitmapinstance-object) - [bitmapItem Object](#bitmapitem-object) - [camera Object](#camera-object) - [compiledClipInstance Object](#compiledclipinstance-object) - [compilerErrors Object](#compilererrors-object) - [componentInstance Object](#componentinstance-object) - [componentsPanel Object](#componentspanel-object) - [contour Object](#contour-object) - [document Object](#document-object) - [drawingLayer](#drawinglayer) - [edge Object](#edge-object) - [element Object](#element-object) - [fill Object](#fill-object) - [filter Object](#filter-object) - [flash(fl.()) Object](#flashfl-object) - [FLfile Object](#flfile-object) - [folderItem Object](#folderitem-object) - [fontItem Object](#fontitem-object) - [frame Object](#frame-object) - [HalfEdge Object](#halfedge-object) - [Instance Object](#instance-object) - [Item Object](#item-object) - [Layer Object](#layer-object) - [LayerParenting Object](#layerparenting-object) - [library Object](#library-object) - [Math Object](#math-object) - [Matrix Object](#matrix-object) - [outputPanel Object](#outputpanel-object) - [Oval Object](#oval-object) - [Parameter object](#parameter-object) - [Path object](#path-object) - [presetItem object](#presetitem-object) - [presetPanel object](#presetpanel-object) - [Rectangle object](#rectangle-object) - [Shape object](#shape-object) - [SoundItem object](#sounditem-object) - [SpriteSheetExporter object](#spritesheetexporter-object) - [Stroke object](#stroke-object) - [swfPanel object](#swfpanel-object) - [SymbolInstance object](#symbolinstance-object) - [SymbolItem object](#symbolitem-object) - [Text Object](#text-object) - [TextAttrs Object](#textattrs-object) - [TextRun Object](#textrun-object) - [TextureAtlasExporter object](#textureatlasexporter-object) - [Timeline Object](#timeline-object) - [ToolObj object](#toolobj-object) - [Tools Object](#tools-object) - [Tween Object](#tween-object) - [Vertex object](#vertex-object) - [VideoItem Object](#videoitem-object) - [XMLUI Object](#xmlui-object) - [C-LevelExtensibility](#c-levelextensibility) ## Introduction ### Working with the JavaScript API As a user of Adobe® Animate®, you may be familiar with Adobe® ActionScript®, which lets you create scripts that execute at run time in Adobe® Flash® Player. The Animate JavaScript application programming interface (JavaScript API or JSAPI) described in this document is a complementary programming tool that lets you create scripts that run in the Animate authoring environment. This document describes the objects, methods, and properties available in the JavaScript API. It assumes that you know how to use the documented commands when working in the authoring environment. If you have a question about what a particular command does, use other documents in Animate Help, such as *Using Animate*, to find that information. This document also assumes that you are familiar with JavaScript or ActionScript syntax and with basic programming concepts such as functions, parameters, and data types. The Animate JavaScript API lets you write scripts to perform several actions in the Animate authoring environment (that is, while a user has the Animate program open). This functionality is different from the ActionScript language, which lets you write scripts to perform actions in the Flash Player environment (that is, while a SWF file is playing). This functionality is also different from JavaScript commands that you might use in pages displayed in a web browser. Using the JavaScript API, you can write Animate application scripts to help streamline the authoring process. For example, you can write scripts to automate repetitive tasks or add custom tools to the Tools panel. The Animate JavaScript API is designed to resemble the Adobe® Dreamweaver® and Adobe® Fireworks® JavaScript API (which were designed based on the Netscape JavaScript API). The Animate JavaScript API is based on a Document Object Model (DOM), which allows Animate documents to be accessed using JavaScript objects. The Animate JavaScript API includes all elements of the Netscape JavaScript API, plus the Animate DOM. These added objects and their methods and properties are described in this document. You can use any of the elements of the native JavaScript language in an Animate script, but only elements that make sense in the context of an Animate document have an effect. The JavaScript API also contains methods that let you implement extensibility using a combination of JavaScript and custom C code. For more information, see [C-Level Extensibility](/C-Level_Extensibility/About_extensibility.md). The JavaScript interpreter in Animate is the Mozilla SpiderMonkey engine, version 1.8. SpiderMonkey is one of the two reference implementations of the JavaScript language developed by Mozilla.org. It is the same engine that is embedded in the Mozilla browser. SpiderMonkey implements the core JavaScript language as defined in the ECMAScript (ECMA-262) edition 3 language specification and it is fully compliant with the specification. Only the browser-specific host objects, which are not part of the ECMA-262 specification, are not supported. Similarly, many JavaScript reference guides distinguish between core JavaScript and client-side (browser-related) JavaScript. Only core JavaScript applies to the Animate JavaScript interpreter. ### Creating JSFL files You can use Adobe Animate Professional or your preferred text editor to write and edit Animate JavaScript (JSFL) files. If you use Animate, these files have a .jsfl extension by default. To write a script, select File > New > Advanced > JSFL Script File. You can also create a JSFL file by selecting commands in the History panel. Then click the Save button in the History panel or select Save As Command from the panel menu. The command (JSFL) file is saved in the Commands folder ([see Saving JSFL files](#saving-jsfl-files)). You can then open the file and edit it the same as any other script file. The History panel provides some other useful options as well. You can copy selected commands to the Clipboard, and you can view JavaScript commands that are generated while you are working in Animate. #### To copy commands from the History panel to the clipboard: 1. Select one or more commands in the History panel. 2. Do one of the following: - Click the Copy button. - Select Copy Steps from the panel menu. #### To view JavaScript commands in the History panel: - Select View > JavaScript in Panel from the panel menu. ### Saving JSFL files You can have JSFL scripts available within the Animate authoring environment by storing them in one of several folders within the Configuration folder. By default, the Configuration folder is in the following location: - Windows® 10™: *boot drive*\\Users\\*username*\\AppData\\Local\\Adobe\\Animate *version*\\*language*\\Configuration\\ - Mac OS® X: Macintosh HD/Users/*username*/Library/Application Support/Adobe/Animate *version*/*language*/Configuration/ To determine the location of the Configuration folder, use [fl.configDirectory](/flash_object_(fl)/fl12.md) or [fl.configURI](/flash_object_(fl)/fl13.md), as shown in the following example: ```javascript // store directory to a variable var configDir = fl.configDirectory; // display directory in the Output panel fl.trace(fl.configDirectory); ``` Within the Configuration folder, the following folders can contain scripts that you can access in the authoring environment: Behaviors (to support the user interface for behaviors); Commands (for scripts that appear on the Commands menu); JavaScript (for scripts used by Script Assist to populate the user interface controls); Tools (for extensible tools in the Tools panel); and WindowSWF (for panels that appear in the Windows menu). This document focuses on scripts used for commands and tools. If you edit a script in the Commands folder, the new script is immediately available in Animate. If you edit a script for an extensible tool, close and restart Animate, or else use the [fl.reloadTools()](flash_object_(fl)/fl57.md) command. However, if you used a script to add an extensible tool to the Tools panel and you then edit the script, either remove and then add the tool to the Tools panel again, or else close and restart Animate for the revised tool to be available. There are two locations where you can store command and tool files so they can be accessed in the authoring environment. - For scripts that appear as items in the Commands menu, save the JSFL file in the Commands folder in the following location:
|
Operating system |
Location |
|---|---|
|
Windows 10 |
boot drive\Users\username\AppData\Local\Adobe\Animate version\language\Configuration\Commands |
|
Mac OS X |
Macintosh HD/Users/userName/Library/Application Support/Adobe/Animate version/language/Configuration/Commands |
|
Operating system |
Location |
|---|---|
|
Windows 10 |
boot drive\Users\username\AppData\Local\Adobe\Animate version\language\Configuration\Tools |
|
Mac OS X |
Macintosh HD/Users/userName/Library/Application Support/Adobe/Animate CC/language/Configuration/Tools |
| Property | Description |
|---|---|
| bitmapItem.allowSmoothing | A Boolean value that specifies whether to allow smoothing of a bitmap. |
| bitmapItem.compressionType | A string that determines the type of image compression applied to the bitmap. |
| bitmapItem.fileLastModifiedDate | The number of seconds that have elapsed between January 1, 1970 and the modification date of the original file. |
| bitmapItem.hasValidAlphaLayer | A Boolean value indicating whether the bitmap has an alpha channel. |
| bitmapItem.hPixels | Specifies the width of the bitmap, in pixels. |
| bitmapItem.lastModifiedDate | The modification date of the bitmap item in the Library. |
| bitmapItem.originalCompressionType | Specifies whether the item was imported as an jpeg file. |
| bitmapItem.sourceFileExists | Specifies whether the file that was imported to the Library still exists in the location from where it was imported. |
| bitmapItem.sourceFileIsCurrent | Specifies whether the file modification date of the Library item is the same as the modification date on disk of the file that was imported. |
| bitmapItem.sourceFilePath | The path and name of the file that was imported into the Library. |
| bitmapItem.useDeblocking | Specifies whether deblocking is enabled. |
| bitmapItem.useImportedJPEGQuality | A Boolean value that specifies whether to use the default imported JPEG quality. |
| bitmapItem.vPixels | Specifies the height of the bitmap, in pixels. |
| Method | Description |
|---|---|
| document.addDataToDocument() | Stores specified data with a document. |
| document.addDataToSelection() | Stores specified data with the selected objects. |
| 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 object in the specified bounding rectangle. |
| document.addNewPrimitiveOval() | Adds a new oval primitive fitting into the specified bounds. |
| document.addNewPrimitiveRectangle() | Adds a new rectangle primitive fitting into the specified bounds. |
| 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.addTaggedSwatch() | To add new tagged swatch. |
| document.addTaggedSwatchWithColor() | To add new tagged swatch with the given color string. |
| document.align() | Aligns the selection. |
| document.allowScreens() - dropped | Dropped in Adobe Animate. |
| document.arrange() | Arranges the selection on the Stage. |
| document.breakApart() | Performs a break-apart operation on the current selection. |
| document.canEditSymbol() | Indicates whether the Edit Symbols menu and functionality are enabled. |
| document.canRevert() | Determines whether you can use the document.revert() |
| Method | Description |
|---|---|
| document.canTestMovie() | Determines whether you can use the |
| document.canTestScene() | Determines whether you can use the |
| document.changeFilterOrder() | Changes the index of the filter in the Filters list. |
| document.clipCopy() | Copies the current selection from the document to the Clipboard. |
| document.clipCut() | Cuts the current selection from the document and writes it to the Clipboard. |
| document.clipPaste() | Pastes the contents of the Clipboard into the document. |
| document.close() | Closes the specified document. |
| document.convertLinesToFills() | Converts lines to fills on the selected objects. |
| document.convertSelectionToBitmap() | Converts selected objects in the current frame to a bitmap and inserts the bitmap into the library. |
| document.convertToDoc() | Converts a document to expected document type. |
| document.convertToSymbol() | Converts the selected Stage items to a new symbol. |
| document.crop() | Uses the top selected drawing object to crop all selected drawing objects underneath it. |
| document.debugMovie() | Initiates a debug session with the document. |
| document.deleteEnvelope() | Deletes the envelope (bounding box that contains one or more objects) from the selected object. |
| document.deletePublishProfile() | Deletes the currently active profile, if there is more than one. |
| document.deleteScene() | Deletes the current scene (Timeline object), and if the deleted scene was not the last one, sets the next scene as the current Timeline object. |
| document.deleteSelection() | Deletes the current selection on the Stage. |
| document.deleteTaggedSwatchAtIndex() | Deletes tagged swatch with given index. |
| document.deleteTaggedSwatchByName() | Deletes tagged swatch with given name. |
| document.disableAllFilters() | Disables all filters on the selected objects. |
| document.disableFilter() | Disables the specified filter in the Filters list. |
| document.disableOtherFilters() | Disables all filters except the one at the specified position in the Filters list. |
| document.distribute() | Distributes the selection. |
| document.distributeToKeyframes() | Performs a distribute-to-keyframes operation on the current selection; equivalent to selecting Distriute to Keyframes. |
| document.distributeToLayers() | Performs a distribute-to-layers operation on the current selection; equivalent to selecting Distribute to Layers. |
| document.documentHasData() | Checks the document for persistent data with the specified name. |
| document.duplicatePublishProfile() | Duplicates the currently active profile and gives the duplicate version focus. |
| document.duplicateScene() | Makes a copy of the currently selected scene, giving the new scene a unique name and making it the current scene. |
| document.duplicateSelection() | Duplicates the selection on the Stage. |
| Method | Description |
|---|---|
| document.editScene() | Makes the specified scene the currently selected scene for editing. |
| document.enableAllFilters() | Enables all the filters on the Filters list for the selected objects. |
| document.enableFilter() | Enables the specified filter for the selected objects. |
| document.enterEditMode() | Switches the authoring tool into the editing mode specified by the parameter. |
| document.exitEditMode() | Exits from symbol-editing mode and returns focus to the next level up from the editing mode. |
| document.exportCanvasPublishTemplate() | Exports the HTML5 Canvas Publishing Template for given document,at the specified location. |
| document.exportInstanceToLibrary() | Export a selected movie clip, graphic, or button instance on the Stage to a new bitmap in the Library. |
| Export a selected movie clip, graphic, or button instance on the Stage to a series of PNG files on disk. | |
| document.exportMedia() | Generates the required media from the document. |
| document.exportPNG() | Exports the document as one or more PNG files. |
| document.exportPublishProfile() | Exports the currently active profile to an XML file. |
| document.exportPublishProfileString() | Returns a string that specifies, in XML format, the specified profile. |
| document.exportSVG() | Exports the document in SVG format. |
| document.exportSWF() | Exports the document in the Flash SWF format. |
| document.exportVideo() | Exports a video from the document and optionally sends it to Adobe Media Encoder to convert the video. |
| document.getAlignToDocument() | Identical to retrieving the value of the To Stage button in the Align panel. |
| document.getBlendMode() | Returns a string that specifies the blending mode for the selected objects. |
| document.getCustomFill() | Retrieves the fill object of the selected shape, or the Tools panel and Property inspector if specified. |
| document.getCustomStroke() | Returns the stroke object of the selected shape, or the Tools panel and Property inspector if specified. |
| document.getDataFromDocument() | Retrieves the value of the specified data. |
| document.getElementProperty() | Gets the specified Element property for the current selection. |
| document.getElementTextAttr() | Gets a specified TextAttrs property of the selected Text objects. |
| document.getFilters() | Returns an array that contains the list of filters applied to the currently selected objects. |
| document.getIndexForTaggedSwatchesPalette() | To get the Tagged Swatches palette index for given palette name. |
| document.getMetadata() | Returns a string containing the XML metadata associated with the document. |
| document.getMobileSettings() | Returns the string passed to document.setMobileSettings(). |
| document.getPlayerVersion() | Returns a string that represents the targeted player version for the specified document. |
| document.getPublishDocumentData() | Indicates whether publishing of the specified persistent data is enabled for the specified format in the document. |
| document.getSelectionRect() | Gets the bounding rectangle of the current selection. |
| Method | Description |
|---|---|
| fl.getSwfPanel() | Returns the SWFPanel object based on the panel's localized name or its SWF filename. |
| fl.getThemeColor() | Retrieves a theme color that matches the parameter specified theme parameter name. |
| fl.getThemeColorParameters() | Retrieves an array of theme parameter names. |
| fl.getThemeFontInfo() | Return either the font style or the font size that is used to draw the UI of the specified size. |
| fl.isFontInstalled() | Determines whether a specified font is installed. |
| fl.mapPlayerURL() | Maps an escaped Unicode URL to a UTF-8 or MBCS URL. |
| fl.openDocument() | Opens a Flash (FLA) document for editing in a new Flash Document window and gives it focus. |
| fl.openScript() | Opens a script (JSFL, AS, ASC) or other file (XML, TXT) in the Flash text editor. |
| fl.quit() | Quits Flash, prompting the user to save any changed documents. |
| fl.reloadEffects() - dropped | Dropped in Adobe Animate. |
| fl.reloadTools() | Rebuilds the Tools panel from the toolconfig.xml file. |
| fl.removeEventListener() | Unregisters a function that was registered using fl.addEventListener(). |
| fl.resetAS3PackagePaths() | Resets the global Classpath setting in the ActionScript 3.0 Settings dialog box to the default value. |
| fl.resetPackagePaths() - dropped | Dropped in Adobe Animate. |
| fl.runScript() | Executes a JavaScript file. |
| fl.saveAll() | Saves all open documents, displaying the Save As dialog box for any documents that were not previously saved. |
| fl.saveDocument() | Saves the specified document as a FLA document. |
| fl.saveDocumentAs() | Displays the Save As dialog box for the specified document. |
| fl.selectElement() | Enables selection or editing of an element. |
| fl.selectTool() | Selects the specified tool in the Tools panel. |
| fl.setActiveWindow() | Sets the active window to be the specified document. |
| fl.setPrefBoolean() | Sets a boolean preference value. |
| fl.showIdleMessage() | Lets you disable the warning about a script running too long. |
| fl.toggleBreakpoint() | Toggles a breakpoint for the given .as file at the given line. |
| fl.trace() | Sends a text string to the Output panel. |
| fl.xmlPanel() | Launches the XML To UI dialog from a URI that points to an XML-format file. |
| fl.xmlPanelFromString() | Launches the XML To UI dialog from an XML-format string. |
| Method | Description |
|---|---|
| frame.convertMotionObjectTo2D() | Converts the selected motion object to a 2D motion object. |
| frame.convertMotionObjectTo3D() | Converts the selected motion object to a 3D motion object. |
| frame.convertToFrameByFrameAnimation() | Converts the current frame to Frame-by-Frame Animation. |
| frame.getCustomEase() | Returns an array of JavaScript objects, each of which has an xy property. |
| frame.getMotionObjectXML() | Returns the motion XML from the selected motion object. |
| frame.getSoundEnvelope() | Gets the sound envelope data of any frame. |
| frame.getSoundEnvelopeLimits() | Gets the limits (start, end) for a custom Sound envelope that is applied to the frame sound. |
| frame.hasMotionPath() | Informs you whether or not the currrent selection has a motion tween. |
| frame.is3DMotionObject() | Informs you whether or not the currrent selection is a 3D motion object. |
| frame.isEmpty() | Informs you whether the frame contains any elements. |
| frame.isMotionObject() | Informs you whether or not the currrent selection is a motion object. |
| frame.selectMotionPath() | Selects or deselects the motion path of the current motion object. |
| frame.setCustomEase() | Specifies a cubic Bézier curve to be used as a custom ease curve. |
| frame.setMotionObjectDuration() | Specifies the duration (the tween span length) of the currently selected motion object. |
| frame.setMotionObjectXML() | Applies the specified motion XML to the selected motion object. |
| frame.setSoundEnvelope() | Sets the sound envelope data of a frame. |
| frame.setSoundEnvelopeLimits() | Sets the sound envelope limits of any frame with a sound file. |
| Property | Description |
|---|---|
| parameter.category | A string that specifies the category property for the screen parameter or componentInstance parameter. |
| parameter.listIndex | An integer that specifies the value of the selected list item. |
| parameter.name | Read-only; a string that specifies the name of the parameter. |
| parameter.value | Corresponds to the Value field in the Parameters tab of the Component inspector, the Parameters tab of the Property inspector, or the screen Property inspector. |
| parameter.valueType | Read-only; a string that indicates the type of the screen or component parameter. |
| parameter.verbose | Specifies where the parameter is displayed. |
| Property | Description |
|---|---|
| symbolInstance.accName | A string that is equivalent to the Name field in the Accessibility panel. |
| symbolInstance.actionScript -dropped | Dropped in Adobe Animate. |
| symbolInstance.backgroundColor | A string specifying the matte color when Opaque is selected. |
| symbolInstance.bitmapRenderMode | A string specifying the display type for a symbol instance. |
| symbolInstance.blendMode | A string that specifies the blending mode to be applied to a movie clip symbol. |
| symbolInstance.brightness | An integer that returns the value set in the color effect Property Inspector for brightness (percentage between -100 and 100) when colorMode == 'brightness'. |
| symbolInstance.buttonTracking | A string (button symbols only) that sets the same property as the pop-up menu for Track as Button or Track As Menu Item in the Property inspector. |
| symbolInstance.cacheAsBitmap | A Boolean value that specifies whether run-time bitmap caching is enabled. |
| symbolInstance.colorAlphaAmount | An integer that is part of the color transformation for the instance, specifying the Advanced Effect Alpha settings; equivalent to using the Color > Advanced setting in the Property inspector and adjusting the controls on the right of the dialog box. |
| symbolInstance.colorAlphaPercent | An integer that specifies part of the color transformation for the instance; equivalent to using the Color > Advanced setting in the instance Property inspector (the percentage controls on the left of the dialog box). |
| symbolInstance.colorBlueAmount | An integer that is part of the color transformation for the instance; equivalent to using the Color > Advanced setting in the instance Property inspector. |
| symbolInstance.colorBluePercent | An integer that is part of the color transformation for the instance; equivalent to using the Color > Advanced setting in the instance Property inspector (the percentage controls on the left of the dialog box). |
| symbolInstance.colorGreenAmount | An integer that is part of the color transformation for the instance; equivalent to using the Color>Advanced setting in the instance Property inspector. Allowable values are from -255 to 255. |
| Property | Description |
|---|---|
| symbolInstance.colorGreenPercent | Part of the color transformation for the instance;equivalent to using the Color>Advanced setting in the instance Property inspector (the percentage controls on the left of the dialog box). |
| symbolInstance.colorMode | A string that specifies the color mode as identified in the symbol Property inspector Color pop-up menu. |
| symbolInstance.colorRedAmount | An integer that is part of the color transformation for the instance, equivalent to using the Color>Advanced setting in the instance Property inspector. |
| symbolInstance.colorRedPercent | Part of the color transformation for the instance;equivalent to using the Color >Advanced setting in the instance Property inspector (the percentage controls on the left of the dialog box). |
| symbolInstance.description | A string that is equivalent to the Description field in the Accessibility panel. |
| symbolInstance.filters | An array of Filter objects (see Filter object). |
| symbolInstance.firstFrame | A zero-based integer that specifies the first frame to appear in the timeline of the graphic. |
| symbolInstance.forceSimple | A Boolean value that enables and disables the accessibility of the object’s children; equivalent to the inverse logic of the Make Child Objects Accessible setting in the Accessibility panel. |
| symbolInstance.is3D | A Boolean value indicating whether the instance contains any 3D transforms. |
| symbolInstance.loop | A string that, for graphic symbols, sets the same property as the Loop pop-up menu in the Property inspector. |
| symbolInstance.shortcut | A string that is equivalent to the shortcut key associated with the symbol; equivalent to the Shortcut field in the Accessibility panel. |
| symbolInstance.silent | A Boolean value that enables or disables the accessibility of the object; equivalent to the inverse logic of the Make Object Accessible setting in the Accessibility panel. |
| symbolInstance.symbolType | A string that specifies the type of symbol; equivalent to the value for Behavior in the Create New Symbol and Convert To Symbol dialog boxes. |
| symbolInstance.tabIndex | An integer that is equivalent to the Tab index field in the Accessibility panel. |
| symbolInstance.tintColor | When the Color Effect Property Inspector is using style tint (colorMode == 'tint'), return the color applied to the tint. |
| symbolInstance.tintPercent | When the color effect Property Inspector is using style tint (colorMode == 'tint') then return the applied to the tint percentage from -100 to 100. |
| symbolInstance.useBackgroundColor | A boolean value that specifies whether to use 24 bit mode or 32 bit mode with alpha for the instance. |
| symbolInstance.visible | A boolean value specifying whether the instance is visible or not. |
| Property | Description |
|---|---|
| text.embeddedCharacters | A string that specifies characters to embed. This is equivalent to entering text in the Character Embedding dialog box. |
| text.embedRanges | A string that consists of delimited integers that correspond to the items that can be selected in the Character Embedding dialog box. |
| text.embedVariantGlyphs | A Boolean value that specifies whether to enable the embedding of variant glyphs. |
| text.filters | An array of filters applied to the text element |
| text.fontRenderingMode | A string that specifies the rendering mode for the text. |
| text.length | Read-only; an integer that represents the number of characters in the Text object. |
| text.lineType | A string that sets the line type to "single line", "multiline", "multiline no wrap", or "password". |
| text.maxCharacters | An integer that specifies the maximum characters the user can enter into this Text object. |
| text.orientation | A string that specifies the orientation of the text field. |
| text.renderAsHTML | A Boolean value that controls whether Flash draws the text as HTML and interprets embedded HTML tags. |
| text.scrollable | A Boolean value that controls whether the text can (true) or cannot (false) be scrolled. |
| text.selectable | A Boolean value that controls whether the text can (true) or cannot (false) be selected. Input text is always selectable. |
| text.selectionEnd | A zero-based integer that specifies the offset of the end of a text subselection. |
| text.selectionStart | A zero-based integer that specifies the offset of the beginning of a text subselection. |
| text.shortcut | A string that is equivalent to the Shortcut field in the Accessibility panel. |
| text.silent | A Boolean value that specifies whether the object is accessible. |
| text.tabIndex | An integer that is equivalent to the Tab Index field in the Accessibility panel. |
| text.textRuns | Read-only; an array of TextRun objects. |
| text.textType | A string that specifies the type of text field. Acceptable values are "static", "dynamic", and "input". |
| text.useDeviceFonts | A Boolean value. A value of true causes Flash to draw text using device fonts. |
| text.variableName | A string that contains the contents of the Text object. |
| Method | Description |
|---|---|
| timeline.cutFrames() | Cuts a range of frames on the current layer from the timeline and saves them to the clipboard. |
| timeline.cutLayers() | Cuts a range of Timeline layers and saves them to the clipboard. |
| timeline.deleteLayer() | Deletes a layer. |
| timeline.duplicateLayers() | Duplicates the selected layers or specified layers. |
| timeline.expandFolder() | Expands or collapses the specified folder or folders. |
| timeline.findLayerIndex() | Finds an array of indexes for the layers with the given name. |
| timeline.getBounds() | Returns the bounding rectangle for all elements on all layers on the Timeline, for a given frame. |
| timeline.getFrameProperty() | Retrieves the specified property’s value for the selected frames. |
| timeline.getGuidelines() | Returns an XML string that represents the current positions of the horizontal and vertical guide lines for a timeline (View > Guides > Show Guides). |
| timeline.getLayerProperty() | Retrieves the specified property’s value for the selected layers. |
| timeline.getSelectedFrames() | Retrieves the currently selected frames in an array. |
| timeline.getSelectedLayers() | Retrieves the zero-based index values of the currently selected layers. |
| timeline.insertBlankKeyframe() | Inserts a blank keyframe at the specified frame index; if the index is not specified, inserts the blank keyframe by using the playhead/selection. |
| timeline.insertFrames() | Inserts the specified number of frames at the given frame number. |
| timeline.insertKeyframe() | Inserts a keyframe at the specified frame. |
| timeline.mergeLayers() | Merge the layers within a specified range of indexes. |
| timeline.pasteFrames() | Pastes the range of frames from the clipboard into the specified frames. |
| timeline.pasteLayers() | Pastes copied layers to the Timeline above the specified layer index. |
| timeline.pasteMotion() | Pastes the range of motion frames retrieved by timeline.copyMotion() to the Timeline. |
| timeline.pasteMotionSpecial() | Pastes motion on selected frames, displaying a dialog box that lets the user choose which parts of a classic tween to paste. |
| timeline.removeFrames() | Deletes the frame. |
| timeline.removeMotionObject() | Removes the motion object created with timeline.createMotionObject(), and converts the frame(s) to static frames. |
| timeline.reorderLayer() | Moves the first specified layer before or after the second specified layer. |
| timeline.reverseFrames() | Reverses a range of frames. |
| timeline.selectAllFrames() | Selects all the frames in the current timeline. |
| timeline.setFrameProperty() | Sets the property of the Frame object for the selected frames. |
| timeline.setGuidelines() | Replaces the guide lines for the timeline with the information specified. |
| timeline.setLayerProperty() | Sets the specified property on all the selected layers to a specified value. |
| timeline.setSelectedFrames() | Selects a range of frames in the current layer or sets the selected frames to the selection array passed into this method. |
| Method |
Description |
|---|---|
| "Tween.getColorTransform( )" |
Returns color transformation data between frames. |
|
Returns filters data of a selected frame from a tween span. |
|
| "Tween.getGeometricTransform()" |
Returns Matrix object that represents geometric transformation of a tween within a user-defined range (from offset to a selected frame). |
| "Tween.getShape( )" |
Returns interpolated shape of a selected frame within a tween-span. |
| Property | Description |
|---|---|
| "Tween. duration" | Duration of a tween span that is equal to number of frames in a tween. |
| "Tween. startFrame" | Start frame of a tween. |
| "Tween. tweenType" | Specifies the type of tween. For example, Motion or Shape. |