13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with XML<br />

<br />

<br />

<br />

Alaska - Weather<br />

http://www.nws.noaa.gov/alerts/ak.html<br />

Alaska - Watches, Warnings and Advisories<br />

<br />

<br />

Short Term Forecast - Taiya Inlet, Klondike Highway (Alaska)<br />

<br />

<br />

http://www.nws.noaa.gov/alerts/ak.html#A18.AJKNK.1900<br />

<br />

<br />

Short Term Forecast Issued At: 2005-04-11T19:00:00<br />

Expired At: 2005-04-12T01:00:00 Issuing Weather Forecast Office<br />

Homepage: http://pajk.arh.noaa.gov<br />

<br />

<br />

<br />

<br />

Short Term Forecast - Haines Borough (Alaska)<br />

<br />

<br />

http://www.nws.noaa.gov/alerts/ak.html#AKZ019.AJKNOWAJK.190000<br />

<br />

<br />

Short Term Forecast Issued At: 2005-04-11T19:00:00<br />

Expired At: 2005-04-12T01:00:00 Issuing Weather Forecast Office<br />

Homepage: http://pajk.arh.noaa.gov<br />

<br />

<br />

<br />

<br />

The SimpleRSS application reads RSS data from the Internet, parses the data for headlines (titles), links, and<br />

descriptions, and returns that data. The SimpleRSSUI class provides the UI and calls the SimpleRSS class, which does<br />

all of the XML processing.<br />

To get the application files for this sample, see www.adobe.com/go/learn_programmingAS3samples_flash. The<br />

RSSViewer application files can be found in the folder Samples/RSSViewer. The application consists of the following<br />

files:<br />

File Description<br />

RSSViewer.mxml<br />

or<br />

RSSViewer.fla<br />

The main application file in Flash (FLA) or Flex (MXML).<br />

com/example/programmingas3/rssViewer/RSSParser.as A class that contains methods that use E4X to traverse RSS (XML) data and<br />

g<strong>en</strong>erate a corresponding HTML repres<strong>en</strong>tation.<br />

RSSData/ak.rss A sample RSS file. The application is set up to read RSS data from the web, at<br />

a Flex RSS feed hosted by Adobe. However, you can easily change the<br />

application to read RSS data from this docum<strong>en</strong>t, which uses a slightly<br />

differ<strong>en</strong>t schema than that of the Flex RSS feed.<br />

Last updated 6/6/2012<br />

114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!