Join Todd Perkins for an in-depth discussion in this video Dispatching events in the RSSReader class, part of ActionScript 3.0: Working with XML.
Our next goal for our RSSReader Class is to have the ability to dispatch events.…Then we can run a block of code once all the RSS data is loaded in and all of the properties are set for our RSSReader object.…If you are following along I am working in 04_Dispatching_Events.fla…which is essentially the same file we have been working with.…If we need to find it it's in the Chapter 4 folder and then in a folder called 04_04.…In that folder you also find the folder structure…that will contain the other file we will be working with which is the RssReader.as file.…
So let's go to that file and let's scroll down and we are going to find the XML Loaded method.…We don't need this trace statement anymore so I am going to delete it and then here I am going to dispatch an event.…So I am going to type Dispatch Event.…This is going to make our RSSReader send out an event.…So in parenthesis we need to pass in the event dispatch.…Now I want to dispatch the complete event so I am going to type new Event and then I am going to type (Event.COMPLETE),…
- 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
Exploring an RSS file3m 1s
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.