-
XML and array functions
When parsing an XML style document <test></test> is interpreted as belonging together while [B]<TeSt></test>[B] isn't.
Is this a bug or is it supposed to be case sensitive and is there a way to turn off case sensivity ?
I needed to use some array functions and noticed array.length isn't supported. Bob, would you consider implementing it in future versions of KM (and maybe also the array.sortOn function)
Wilbert
-
I am not familiar with the XML functionality. I believe you can convert a string to lower case so you can try that. Does it work if the 's' is not capitalized?
Array length is supported. I tested it with this:
myArray = new Array();
myArray[0] = 'a';
// myArray.length is updated to 1
myArray[1] = 'b';
// myArray.length is updated to 2
txt1 = myArray.length;
// txt1 is a dynamic text object
sortOn is flash 6. I did not catch that fact in determining the minimum flash version required. You can force the output to flash 6 in SWF statictics if you want .
-
I must have done something wrong with the array function.
The XML problem isn't solved by the lowercase function. That way I can recognize both <test></test> and <TEST></TEST> but when I accidently type <test></Test> flash doesn't seem to recognize that they belong to eachother so nothing is recognized. In HTML it is no problem to use <b></B> together.
-
Unlike html, XML is very strict in the required structure of the document.
Macromedia has some resources relating to XML:
http://www.macromedia.com/desdev/topics/xml.html
Regards
Hilary
--