Tum tee tum....

Anyone know what "-6" is when Flash MX's XML parser throws and error??

Latest bit of actionscript...
myXML = new XML();
myXML.load ("http://myurl/menu.cfm";);

myXML.onLoad = function(success) {
 if (success) {
  if (myXML.status == 0) {
// Do stuff
   myXML.ignoreWhite = true;
   thisMenu = myXML.childNodes[0];
   thisLevel = thisMenu.attributes.type;
   MenuItems = thisMenu.childNodes.length;
  } else {
   trace("Parse Error:"+myXML.status);
  }
 } else {
  trace("Load Error");
 }
}

Stephen
----- Original Message -----
From: "Stephen Moretti" <[EMAIL PROTECTED]>
To: "CFDeveloper Dev List" <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 5:09 PM
Subject: [ cf-dev ] OT: Flash and XML....


> Only sort of OT, cos the XML is being generated by CF, but anyway....
>
> Got this problem....
>
> myXML = new XML('<menu type="Level1"><menuitem title="Collections"
> action="collection.display" ContentID="184" highlight="off"/><menuitem
> title="Products" action="product.display" ContentID="185"
> highlight="off"/><menuitem title="Information" action="display"
> ContentID="1" highlight="off"/><menuitem title="Contact" action="display"
> ContentID="137" highlight="off"/></menu>');
> myXML.ignoreWhite = true;
> thisMenu = myXML.childNodes[0];
> thisLevel = thisMenu.attributes.type;
> MenuItems = thisMenu.childNodes.length;
>
> This works great....
>
> However, when I do
>
> myXML = new XML();
> myXML.load ("http://myurl/menu.cfm";);
> myXML.ignoreWhite = true;
> thisMenu = myXML.childNodes[0];
> thisLevel = thisMenu.attributes.type;
> MenuItems = thisMenu.childNodes.length;
>
> the XML loads into myXML correctly, but returns undefined for thisMenu,
> thisLevel and MenuItems.
>
> I should mention that menu.cfm returns almost exactly the same XML as is
in
> the top code, but for a few bits of white space, tabs etc.....
>
> Any thoughts??
>
> Stephen
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to