Join Todd Perkins for an in-depth discussion in this video Setting a default namespace, part of ActionScript 3.0: Working with XML.
A really easy way to cut down on a namespace syntax is to declare a default namespace.…Using a default namespace you can reference namespace qualified elements…and attributes the same way you would reference other elements and attributes.…If you are following along I am working in 05_default_namespace.fla in the Chapter 7 folder.…You could also just use the same file you have been using throughout this chapter.…Let's go to the first keyframe of the Actions Layer and open up the Actions Panel and there are a few things that we are going…to need to change in our code to shorten the code.…
I am going to select the line of code where we created our media variable and I am going to use Command X or Ctrl X on the PC…to cut the code and I am going to paste it in our variables section.…So I am going to make it a global variable now instead of a local variable for that function.…And also because our reader.feed.namespace doesn't exist until the data is loaded,…I am going to just declare the hard coded value for our namespace.…
- 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.