Looping XML from HTTPService with mx:Repeater
this pretty same topic title repeater xml
but, when following discussion, still "access of possibly undefined property" error messages nodes trying reference.
my flex code
my xml returned
thanks sooo help... ive been racking brain on reading on , on ending @ same spot.
but, when following discussion, still "access of possibly undefined property" error messages nodes trying reference.
my flex code
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml"
layout="absolute"
creationcomplete="feedrequest.send()" width="449" height="488" color="#000040" fontsize="16">
<mx:httpservice
id="feedrequest"
url=" http://www.mysite.com/rss/feed.cfm?feed=7"
useproxy="false"
resultformat="e4x" />
<mx:model id="myfeed" source="{feedrequest.rss.channel}"/>
<mx:arraycollection id="feed" source="mx.utils.arrayutil.toarray(myfeed)"/>
<mx:panel width="439" height="443" layout="absolute" title="{feedrequest.lastresult.rss.channel.title}" cornerradius="20" backgroundalpha="1.0" alpha="1.0" y="40" x="5" borderstyle="solid">
<mx:text x="7" y="-4" text="latest posting dynamic call" fontsize="11"/>
<mx:repeater id="i" dataprovider="{myfeed}">
<mx:image x="10" y="23" scalecontent="true" autoload="true" width="52" height="52" source="{i.currentitem.media.avatar}"></mx:image>
<mx:text x="70" y="22" text="{i.currentitem.title}" width="339" fontsize="12" fontweight="bold" height="28"/>
<mx:text x="231" y="38" text="by {i.currentitem.author}" fontsize="10" color="#c0c0c0" width="98" height="15"/>
<mx:text x="70" y="38" text="{i.currentitem.pubdate}" fontsize="10" width="157" color="#c0c0c0" height="15"/>
<mx:text x="70" y="52" text="{i.currentitem.description}" width="326" height="54" enabled="true" fontsize="10"/>
</mx:repeater>
</mx:panel>
</mx:application>
my xml returned
quote:
<?xml version="1.0" encoding="utf-8"?>
<rss>
<channel>
<title>mysite.com - journal</title>
<link> http://www.mysite.com/index.cfm/mysite/backstage.artistpass/id/7/view.htm</link>
<description>official mysite.com journal</description>
<pubdate>wed, 13 sep 2006 08:29 am</pubdate>
<lastbuilddate>{ts '2006-09-13 08:29:35'}</lastbuilddate>
<generator> http://www.mysite.com/</generator>
<item>
<title>beautiful montana</title>
<pubdate>posted 0 days 14 hours 12 minutes ago</pubdate>
<link> http://www.mysite.com/index.cfm/mysite/pictures.view/searchtext/beautiful%fe%ff%00%20monta na/id/156/view.htm</link>
<description>the weather not anymore perfect today.</description>
<author>paul</author>
<media>
<avatar> http://www.mysite.com/images/users/avatars/d5198fbb.jpg</avatar>
<image>
<fullsize> http://mysite.com/images/wm/image.cfm?image=/content/20060912-3360-4f9a2eb5.jpg</fullsize>
<thumbnail> http://mysite.com/images/wm/image.cfm?image=/content/20060912-3360-4f9a2eb5.jpg&width= 256</thumbnail>
</image>
</media>
<subject>beautiful montana</subject>
<body>
<p>the weather not anymore perfect today.<br/>
<a href=" http://mysite.com/index.cfm/mysite/pictures.view/searchtext/view%20beautiful%fe%ff%00%20mo ntana/id/187/view_187.htm"><img src=" http://mysite.com/images/i/image.cfm?image=/content/20060912-3360-4f9a2eb5.jpg&width=2 56" width="256"/></a>
</p>
</body>
<tags/>
</item>
<item>
<title>the latest in merchandising..</title>
<pubdate>posted 0 days 15 hours 2 minutes ago</pubdate>
<link> http://www.mysite.com/index.cfm/mysite/pictures.view/searchtext/the%fe%ff%00%20latest%00%2 0in%00%20merchandising%00%2e%00%2e/id/155/silverstein_backstage.htm</link>
<description>text text text text text text text text text text text text text text text text text text text </description>
<author>paul</author>
<media>
<avatar> http://www.mysite.com/images/users/avatars/d5198fbb.jpg</avatar>
<image>
<fullsize> http://mysite.com/images/wm/image.cfm?image=/content/20060912-2388-532b7287.jpg</fullsize>
<thumbnail> http://mysite.com/images/wm/image.cfm?image=/content/20060912-2388-532b7287.jpg&width= 256</thumbnail>
</image>
</media>
<subject>the latest in merchandising..</subject>
<body>
<p>we had great day yesterday (as documented in yesterday's blog
entries). please see attached poster has been constructed in
less 24 hours. made limited run of 100 posters
being hand numbered. them while supplies last!<br/>
<a href=" http://mysite.com/index.cfm/mysite/pictures.view/searchtext/view%20beautiful%fe%ff%00%20mo ntana/id/186/view_186.htm"><img src=" http://mysite.com/images/i/image.cfm?image=/content/20060912-2388-532b7287.jpg&width=2 56" width="256"/></a>
</p>
</body>
<tags>under 21 audition</tags>
</item>
</channel>
</rss>
thanks sooo help... ive been racking brain on reading on , on ending @ same spot.
so repeater create correct number of items?
tracy
tracy
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment