Join Todd Perkins for an in-depth discussion in this video Working with bitmaps and bitmap data, part of Flash CS4 Professional: Object-Oriented Programming .
- View Offline
- Exercise Files
One of the common tasks that you'll want to do in working with ActionScript 3.0 …is copy an element. Here, I'll show you how to use bitmap graphics to copy…a movie clip symbol. On the stage have a very simple movie clip called the…circle_mc. It's just a black circle. Let's go to our code, select the first…keyframe in the Actions layer and go ahead and open up the Actions panel.…When you are working with bitmap images in order to create a bitmap copy of an…object, you need two things. One is an instance of the bitmap data class and…two is an instance of the bitmap class. The bitmap class is used to display…bitmap data. So let's create a bitmap data instance.…
So I created a variable bd, short for bitmap data. Data type it to BitmapData…and we'll set it equal to a new instance of the BitmapData class. The…BitmapData constructor has two required parameters: width and height. These are…read only property. So once you set them you, can't modify them. For the width…I'm going to type circle_mc.width and for the height, circle_mc.height.…
- 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.