From the course: Flash Professional: Shortcuts

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Creating new class/interface files

Creating new class/interface files - Flash Professional Tutorial

From the course: Flash Professional: Shortcuts

Start my 1-month free trial

Creating new class/interface files

ActionScript 3.0 classes all contain the same skeleton and having to type all of that code every time you create a class can be a pain. Fortunately, you can create class and interface files with one click and have Flash write all of the skeleton code for you. You'll notice from the welcome screen you can choose to create a New ActionScript 3.0 Class or ActionScript 3.0 Interface. You could also do this from going to File > New. And here I am going to select ActionScript 3.0 Class. Note that you can choose if you want to use Flash Pro or Flash Builder. I will leave Flash Professional selected. For the class name I'll just call this Test. And then I'll just click OK. Flash creates the package declaration for me and creates a public class Test declaration, the constructor method. So I have 11 lines of code prewritten for me. It's not a lot of code, but it is tedious writing this every time you create a class. And then you can go from here and do a File > Save As and Flash automatically…

Contents