Join Todd Perkins for an in-depth discussion in this video Creating classes, part of Flash CS4 Professional: Object-Oriented Programming .
- View Offline
- Exercise Files
Now look at creating ActionScript 3.0 classes. I'm going to start by going…over to SimpleClass.as. If you don't have this file, then you can create a new…ActionScript class by going to File > New, then you can choose ActionScript File. …Make sure to name it SimpleClass, same case that I have here, .as and…save it in the same folder as your FLA file.…When you are declaring a class in ActionScript 3.0, the first thing to do…is to declare a package. A package is a folder that contains classes. So type…package and here we are not going to put the class in any kind of folder or…anything. So I'm not going to type anything else. I'm just going to type some…curly braces below the package. So package and some curly braces.…
The next step is to define the class. When you define a class in ActionScript…3.0, you are typically going to start it out using the public keyword. So type…public class and then the name of the class, which is going to be the same name…as your ActionScript file which in this case is SimpleClass, and you don't type…
- Loading external text, images, and XML files
- Creating essential properties for a View class
- Defining a Model class
- Building and implementing interfaces and designs
- Debugging projects
- Building applications with Controller-class buttons
Skill Level Intermediate
1. ActionScript 3.0 Essentials
2. Advanced ActionScript Techniques
3. Object-Oriented Programming Fundamentals
4. The Model View Controller Design Pattern
5. Building a Model Class
6. Building a View Class
7. Building a Controller Class
8. Improving and Debugging the Application
9. Moving Forward
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.