天天看點

flash中 讀取XML的問題[xml部分]

<?xml version='1.0' encoding='GB2312'?>

以上是聲名..可寫,可不寫...最好寫..

<theXML>

           <thema>

      <matoku>   good</matoku>

                  </thema>

   <themb>good man</themb>

   <themc>man</themc>

</theXML>

<photo>

   <pic>matoku </pic>

</photo> 

-----------------------------------

AS中的

 _root.txt.text = ts.childNodes[1].firstChild.firstChild.nodeValue

這句話..是讀取下面<pic>節點中的matoku字元串

<photo>

   <pic>matoku </pic>

</photo>

繼續閱讀