
Insert a HTTPService component 113
3. In the <mx:Panel> tag, replace the value of the title property (“Blog Reader”) with the
following binding expression (in bold):
title="{feedRequest.lastResult.rss.channel.title}"
This expression binds the title field to the Panel control. The expression reflects the
structure of the XML. When XML is returned to a HTTPService component, the
component parses it into an ActionScript object named lastResult. The structure of the
lastResult object mirrors the structure of the XML document. To check the XML
structure, download the RSS feed’s XML file (at http://www.adobe.com/go/flex_blogfeed)
and open it in Internet Explorer.
The general structure of the XML is as follows:
<rss>
<channel>
<title>
other child nodes of <channel>
<item>
<title>
other child nodes of <item>
</item>
...
Komentarze do niniejszej Instrukcji