Creating new ActionScript files and classes


show more Creating new ActionScript files and classes provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 New Features show less
please wait ...

Creating new ActionScript files and classes

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 ...

Creating new ActionScript files and classes
Video duration: 1m 29s 1h 19m Intermediate

Viewers:

Creating new ActionScript files and classes provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 New Features

Subject:
Web
Software:
Flash Professional
Author:
please wait ...