2 Replies Latest reply on Apr 2, 2007 5:53 AM by idpjc

    XML Flex Debug Window Output Fails?

    idpjc
      Hi,

      Does anyone know why the following small example would fail in the Flex Debug Expression window (in the trace statement it works fine?).

      var myXML:XML =
      <order>
      <item id='1' quantity='2'>
      <menuName>burger</menuName>
      <price>3.95</price>
      </item>
      </order>;

      trace(myXML.item[0].menuName.toString());

      However, In DEBUG - Expressions Window:

      If you type:

      myXML.item[0].menuName.toString()

      you will get the following displayed:

      myXML.item[0].menuName.toString() = <errors during evaluation>
      -- No such variable: item

      Any help would be appreciated

      Thanks,
      PhilC