Join Todd Perkins for an in-depth discussion in this video Defining the SlideShowModel class properties and methods, part of Flash CS4 Professional: Object-Oriented Programming .
Now we will define the properties and methods for this SlideshowModel class.…We will start by the defining some properties above the Constructor method.…So create a public property images. This is going to be an XMLList. …So this is going to represent all of the repeating XML image elements in the Slideshows data.…Create another public property. This one is going to be called currentImage.…This is going to represent the current XML image that we are working with. So,…the SlideshowModel is basically is going to have a current XML image element…and we can access its data to that.…
Now we will create two more public properties. One called the currentTitle that…represents the title for the current image. It's going to be a String. And then…another one called currentFile that represents the file location for the image,…which is also going to be a String.…Now before we define the methods that we are going to use I want to take you…over to the Model class file. In the Model file, there are two protected methods.…
- 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?
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.