A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: XML and array functions

  1. #1
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632

    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

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    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 .

  3. #3
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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.

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    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

    --

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center