Join Todd Perkins for an in-depth discussion in this video Looping through XML data, part of ActionScript 3.0: Working with XML.
E4X specification also allows you to loop through XML data using a special kind of loop called the for/each/in loop.…We will talk about how to work with a for/each/in loop in this exercise…and display data using that loop instead of our text field.…If you are following along I am working in 06_looping_xml.fla in the Chapter3 folder…or you can just use the same file you have been working with up to this point.…Let's go to the first keyframe in the Actions Layer and open up the Actions Panel.…Now let's take a look at you know the XML loaded function is setup.…
We have a new variable called Query, the data type is XML.…We have a variable called Query text it to String that's blank right now and then we have the value of Query set…to the query that we created in the last exercise.…Suppose I change the ID to 001.…So we are going to get all of the information about the parent XML element…of the element that it has the photographer ID of 001.…So we are going to take that data, we are going to display in the text field.…
- Understanding XML data
- Creating XML in ActionScript 3.0
- Working with external XML data
- Building a reusable RSS reader class
- Using PHP with XML
- Working with blogs
- Working with Flickr images using the Flickr API
- Working with podcasts
Skill Level Intermediate
1. Understanding XML Data
2. Creating XML in ActionScript 3.0
3. Working with External XML Data
4. Building a Reusable RSS Reader Class
5. Using PHP with XML Data
6. Working with Blogs
7. Working with the Flickr API
8. Working with Podcasts
- 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.