4 Replies Latest reply on Jun 19, 2007 9:41 AM by kcell

    a bug in XML::attributes()

    frogcjn
      In the past, if you run these:
      var xml:XML = <xml a="1" b="2"/>
      var a:XML = xml.attributes()[0];
      trace(a.toXMLString());

      you'll get a right callback like:
      <a>1</a>

      But if you run the same in the latest version,
      you'll get a callback like:
      1

      The xml objects in the xmlist returned from attributes() is unexpected in the latest version.


      for another example:
      In early version:
      var xml:XML = <xml a="1" b="2"/>
      var list:XMLList = xml.attributes();
      var xml2:XML = <xml><node/></xml>
      xml2.appendChild(list[0]);
      trace(xml2.toXMLString());
      you will get a right one :
      <xml>
      <node/>
      <a>1</a>
      </xml>

      current version you will get a terrible callback:
      <xml>
      <node/>
      1
      </xml>




      How can I accept with this bug? Please check your SDK and runtime Player!!!!

      (excuse for my week English)