Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 244
Code Snippets options
Using the Code Snippets panel not only makes adding interactivity quick and
learning code easy, but it can help organize frequently used code for yourself and
for a team working on the same project. There are additional options in the Code
Snippets panel for saving your own code and sharing your code with others.
Creating your own code snippet
If you have your own ActionScript code that you’ll use repeatedly, you can store it
in the Code Snippets panel and apply it in other projects easily.
1 Open the Code Snippets panel, if it isn’t already open.
2 From the Options menu at the upper right of the panel, choose Create New
Code Snippet.
The Create New Code Snippet dialog box appears.
3 Enter a title in the Title field and a description in the Description field for your
new code snippet. In the Code field, enter the ActionScript you want to save.
Use the term instance_name_here for any placeholder instance names and be
sure to check the option below the Code field.
Adobe FLAsh ProFessIonAL Cs6 CLAssroom In A book
235