2010-11-30 108 views
0

讓圖片你好我從Twitter上原子飼料,每個條目看起來是這樣的:從Twitter的飼料

<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 like Willow did, for ANY reason whatsoever, my Dad would have grounded me for months. Learn to 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 like Willow did, for ANY reason whatsoever, my Dad would have grounded me for months. Learn to 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> 

現在我想有從第二link標籤至極的網址是海報圖像。 我如何在as3中選擇它?我試過以下內容:

for each(var entryXML:XML in resultXML.rootNamespace::entry) 
      { 
        trace(entryXML.rootNamespace::[email protected]); 


      } 

但是這也給了我第一個鏈接的href。那麼如何過濾這個,所以我只能從第二個鏈接獲取href?

回答