Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Flash CS5 has templates for creating different types of ActionScript files. These files are ActionScript 3.0 Classes and ActionScript 3.0 Interfaces. You can create them from the Welcome screen or from choosing File > New. In the New Document dialog, you can choose ActionScript 3.0 Class or ActionScript 3.0 Interface. Let's take a look at the Class first. I'll select it and click OK. Then I'm prompted to create the Class name. So, I'll type 'TestClass' and then click OK.
Flash then creates a brand-new ActionScript Class, based on a document template. In other words, Flash writes the package declaration, the class declaration and creates a constructor method for you. This can save you a lot of time when you're developing an application because you don't have to write this code every single time you create a new ActionScript Class, when you're working in Flash. Let's take a look at ActionScript Interfaces. I'm going to choose create ActionScript 3.0 Interface from the Welcome screen.
Again, I'm asked to add a name, so I'm going to call this ITest, and then I'll click OK, and Flash gives me the interface template. So, when working with these new document templates, you can quickly and easily create ActionScript Classes and Interfaces without having to write the same code each time.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.