Join Todd Perkins for an in-depth discussion in this video Working with display objects, part of Flash CS4 Professional: Object-Oriented Programming .
In this movie, we'll use ActionScript to manipulate objects on the stage.…The first thing you need to do is give your object an instance name. So it should…be an instance of either a movie clip or a button symbol. Select it on the…stage and within the Property inspector, click on the Instance Name field and name…your object my_btn.…If you don't have access to the Exercise Files, this could be any movie clip or…button symbol. I'm going to press Enter or Return to accept the change to its…instance name. Go to the first keyframe in the Actions layer and open up…the Actions panel.…So let's say I wanted to move the button when I clicked it. So the first thing…I'm going to do is add an event listener to the button.…
So my_btn.addEventListener and event is going to be MouseEvent.CLICK. Now I'll run a…function called btnClick, capital C, and then below this we'll define that…function. So function btnClick. In the parenthesis it's going to receive an…event object with the data type of MouseEvent, return data type is going to be…
- 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.