Join Todd Perkins for an in-depth discussion in this video Working with external XML data, part of Flash CS4 Professional: Object-Oriented Programming .
Now we are going to look at using the external XML data in our slideshow.…Remember that your external XML data is set up as follows. We are going to tab…over to TextEdit to look at the XML file. So gallery is the root XML element,…then there is a repeating element called image. Each one of those has a child…element called file and one called title. So we are going to be able to access those…in this movie.…Let's go over to Flash and I'm going to do that inside of the updateData method. …Remember the updateData method is the last thing that happens before…the changeEvent occurs. So this is what controls how the data is manipulated in…this particular Model. So I'm just basically going to set all of the properties…based on the currentIndex.…
Remember that the currentIndex is already in bounds when the updataData method runs. …That's all based on how everything is set up in the Model class. So first…currentImage = images and the index is going to be currentIndex. On the next line, …set the value of totalItems. We will set that equal to images.length and…
- 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.