XMLアクセス方法

アドビ−ActionScript cookbook:XMLのロードと読み取り
http://www.adobe.com/jp/devnet/actionscript/cookbook/load_xml.html
ActionScriptXML のアクセス - zyxwvの日記
http://d.hatena.ne.jp/zyxwv/20090218/1234941810
あとActionScript3.0ポケットリファレンスより。

   var test_xml:XML = 
    <xml>
     <sub id="100">
      <title>ほげ</title>
     </sub>
     <sub id="200">
      <title>ふが</title>
     </sub>   
    </xml>;
   //trace(test_xml.toXMLString()); //そのままなので略
   trace(test_xml..sub.length());
   trace(test_xml.sub[0].title);

2
ほげ