MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guide de l'utilisateur Page 113

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 256
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 112
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>
...
Vue de la page 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 255 256

Commentaires sur ces manuels

Pas de commentaire