Join Todd Perkins for an in-depth discussion in this video Optimizing image loading with bitmaps, part of Flash CS4 Professional: Object-Oriented Programming .
In this movie we are going to look at how to cross fade images using bitmaps.…We are going to start out by manipulating the model in our SlideshowDocument…class and watching the images change. In the bottom of the constructor I'm…going to type container_mc. addEventListener and the event is going to be…MouseEvent.CLICK.…Since I'm using the MouseEvent class we will need to make sure that that gets…imported. And it is, because I'm importing all events. And then I'll run a…method called containerClicked. Let's define it as public it doesn't matter if…you define it as public or private because no other classes are going to use…the methods in this class anyway.…
So containerClicked is going to be an event with the data type of MouseEvent,…no return data type and in here we are going to change the slideModel's current…index. So it's going to be slideModel. setCurrentIndex. This allows us to change…the current index of the slideModel and in the parenthesis we are going to…change the current index by adding 1 to the slideModel's CurrentIndex.…
- 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.