Join Todd Perkins for an in-depth discussion in this video Creating the SlideShowDocument class, part of Flash CS4 Professional: Object-Oriented Programming .
In this movie we are going to take all of the ActionScript code out of the FLA file …and put it in an external ActionScript file that's connected to the FLA file. …This is what is called a document class. The file I have opened is called…SlideshowDocument.as and it's in the same folder as the FLA file. So if you…don't have the Exercise Files make sure to put it in that same folder.…So here we are going to create a basic class or package. Inside of that package…we are going to create a public class called SlideshowDocument. Make sure the S…in Slideshow is capitalized and the D in the Document is capitalized. Also make…sure that matches your file name as well and it's going to extend…the MovieClip class.…
Now whenever you are creating a Document class or a class that's going to run…your FLA file, it needs to extend the MovieClip class. So I'm going to extend…the MovieClip class here and then I'll just create the Constructor. Remember…that's going to match the name of the class and the name of the file. So public…
- 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.