Join Todd Perkins for an in-depth discussion in this video Understanding XML in ActionScript 3.0, part of Flash CS4 Professional: Object-Oriented Programming .
ActionScript 3.0 uses something called ECMAScript for XML or E4X to work with…XML data. If you are not familiar with XML data right now, I recommend the Working…with XML Data in ActionScript 3.0 title in the lynda.com Online Training Library.…So for this exercise, I'm going to assume that you are familiar with XML data.…E4X essentially means that you can manipulate XML data using dot syntax. …So XML data is now a native data format.…
On the stage here I have a text field and it has an instance name of my_txt.…Let's go to the Actions panel by selecting the first keyframe of the Actions…layer, opening it up using Option+F9 on the Mac or F9 on the PC. We will look…at how XML and E4X syntax works in ActionScript 3.0.…So I'm going to hold an XML object in a variable. I'm going to call this…variable, gallery, and data type it to XML. I'm going to set it equal to an XML…object. So I'm going to use shorthand notation and create an XML element called…gallery. Now you don't have to have the same name between your XML instance in…
- 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.