Click to See Complete Forum and Search --> : XML and array functions
w.brants
12-27-2002, 07:29 AM
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
Bob Hartzell
12-27-2002, 08:22 AM
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 .
w.brants
12-27-2002, 09:47 AM
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.
bridelh
12-28-2002, 08:21 AM
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
--
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.