These buttons open the ActionScript Settings dialog boxes, where you can set source path, library path, and external library path for ActionScript 3. Legal Notices Online Privacy Policy. User Guide Cancel. Getting started with ActionScript. Which version of ActionScript can you use? Using the ActionScript documentation.
Ways of working with ActionScript. There are several ways to work with ActionScript. Writing ActionScript. More recommended community content.
Overview of the Output panel. The Output panel consists of the following menu items: Copy: Copies all the contents of the Output panel to the clipboard of computer. To copy a selected portion of the output, select the area you want to copy and then select Copy. Clear: Clears the content of the output panel. Show Output: Displays the content of the output panel.
Lock: Locks the panel. You can only resize the panel but you cannot move or drag the panel. Help: Loads the online Help for the output panel. Close: Closes the output panel. Close Group: Closes the whole panel group. You can simultaneously dock multiple panels such as timeline, output panel, and compiler errors panel.
Actions panel. Looking for the Language Reference? Learning ActionScript. To learn about writing ActionScript, use these resources:. Overview of the Actions panel. The Actions panel consists of two panes:. Script pane. Lets you type ActionScript code, which is associated with the currently selected frame. Run Script: Runs the script Pin Script: Pins the script to the pin tabs of individual scripts in the Script pane and move them accordingly.
This feature is useful if you have not organized the code within your FLA file into one central location. Or, it is useful if you are using multiple scripts. You can pin a script to retain the open location of the code in the Actions panel and toggle between the various open scripts.
This feature can be useful when debugging. Insert Instance Path and Name: Helps you set an absolute or relative target path for an action in the script. Find: It finds and replaces text in your script. Format Code: Helps to format the code. Code Snippets : Opens the Code Snippets panel that displays sample code snippets. Add using wizard: Click this button to add actions using an easy-to-use wizard without having to write code.
Help: Displays reference information for the ActionScript element that is selected in the Script pane. For example, if you click an import statement and then click Help, the reference information for import appears in the Help panel. Using actions code wizard.
Select an action for which you want to create code using the code wizard. A sample screenshot displaying action code wizard options for actions. Enhance the interactivity of an Animation. In the Timeline , select the action clip. Click Add using wizard in Actions pane. Object on which to apply the action : Select the required object.
Click Next. How to add interactivity to your animations. Watch the video to learn about more actions like play, move vertically, and position the object. Using script window. Create an external file in the Script window. Edit an existing file in the Script window. Tools in the Actions panel and script window. Find Finds and replaces text in your script.
Insert Target Path Actions panel only Helps you set an absolute or relative target path for an action in the script. Help Displays reference information for the ActionScript element that is selected in the Script pane. Code Snippets Opens the Code Snippets panel that displays sample code snippets. Add using wizard Helps you to add code for actions using an interface without having to write code. Accessing context-sensitive Help from the Actions panel.
Create a main class file that extends from DisplayObject. If you need to compile a Flash project as opposed to Flex you can add a reference to the Flash library as follows you'll need to have the Adobe Animate IDE installed :. With no cost, it's a very popular way to get started developing with AS3. If the AppMan doesn't open automatically, or you want to add something later, open it by choosing 'Install Software' on the 'Tools' menu.
Click the install button. Once the SDK is installed, let's test is by creating a hello world project. Start by creating a new project from the Project menu. The acompc command invokes the standard Flex compc component compiler, but loads its configuration options from the air-config. Use a local configuration file to avoid typing and perhaps incorrectly typing the source path and class names on the command line.
Add the -load-config option to the acompc command line to load the local configuration file. The following example illustrates a configuration for building a library with two classes, ParticleManager and Particle, both in the package: com. To compile the library using the configuration file, named ParticleLib-config.
Type the entire command on one line, or use the line continuation character for your command shell. These examples assume that you are using a configuration file named myLib-config.
Flex compilers. Adobe AIR. View Help PDF 5. ActionScript compilers. About the AIR command-line tools in the Flex SDK Each of the command-line tools you use to create an Adobe AIR application calls the corresponding tool used to build applications: amxmlc calls mxmlc to compile application classes acompc calls compc to compile library and component classes aasdoc calls asdoc to generate documentation files from source code comments The only difference between the Flex and the AIR versions of the utilities is that the AIR versions load the configuration options from the air-config.
Compiler setup You typically specify compilation options both on the command line and with one or more configuration files. Typically, these libraries are referenced in a project-level configuration file, in a file for a build tool such as Ant, or directly on the command line. Now, to compile the application, you only have to type: amxmlc RunningMan.
The acompc component compiler behaves like the amxmlc compiler, with the following exceptions: You must specify which classes within the code base to include in the library or component.
0コメント