actionscript 3 - getting pictures from twitter feed -


hello have atom feed twitter , every entry looks this:

<entry>     <id>tag:search.twitter.com,2005:9708181705990144</id>     <published>2010-11-30t20:39:45z</published>     <link type="text/html" href="http://twitter.com/eva_starlily/statuses/9708181705990144" rel="alternate"/>     <title>@sarahpalinusa if i'd used language willow did, reason whatsoever, dad have grounded me months. learn parent.</title>     <content type="html">&lt;a href=&quot;http://twitter.com/sarahpalinusa&quot;&gt;@sarahpalinusa&lt;/a&gt; if i&amp;apos;d used language willow did, reason whatsoever, dad have grounded me months. learn parent.</content>     <updated>2010-11-30t20:39:45z</updated>     <link type="image/png" href="http://a0.twimg.com/profile_images/1179401088/b6c2b6ec-3432-476b-9ded-473986f12fd5_normal.png" rel="image"/>     <twitter:geo>     </twitter:geo>     <twitter:metadata>       <twitter:result_type>recent</twitter:result_type>     </twitter:metadata>     <twitter:place>       <twitter:id>8c9bcefd88d617fe</twitter:id>       <twitter:full_name>greenwood - coxwell, toronto</twitter:full_name>       <twitter:type>neighborhood</twitter:type>     </twitter:place>     <twitter:source>&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;</twitter:source>     <twitter:lang>en</twitter:lang>     <author>       <name>eva_starlily (laura)</name>       <uri>http://twitter.com/eva_starlily</uri>     </author>   </entry> 

now have url second link tag wich poster image. how can select within as3? tried following:

for each(var entryxml:xml in resultxml.rootnamespace::entry)             {                     trace(entryxml.rootnamespace::link.@href);               } 

but gives me href first link. how can filter href second link?

try this:

var imageurl : string = entryxml.link.(@type=="image/png").@href; 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -