Join Todd Perkins for an in-depth discussion in this video Working with E4X operators, part of ActionScript 3.0: Working with XML.
- View Offline
- Exercise Files
Another great thing about E4X is that it enables you to sort of query the data that you are working with very, very easily.…If you are following along I am in 05 E4X Operators.FLA or you can just use the same file you have been working with.…I am going to select the first keyframe in the Actions Layers and open up the Actions panel.…So now let's say we want to get the data for every photographer with a certain name.…I will show you how to do it right here.…Gallary_XML.Image and then right after image, type a .photographer and then the E4X syntax…for searching for data dot and some parenthesis.…
Now from here it might look just like a conditional statement in Flash.…So in the parenthesis let's say I want the name to be John Photographer, I am going to type name == "John Photographer".…Notice that the syntax is almost identical to then creating a simple conditional statement in ActionScript.…Test the movie and you see the photographer element where the name="John Photographer".…
And so if you wanted the location to be Ventura California, I can just change that to location and then "Ventura California"…
- 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.