I’m wondering what the benefits of loading text data versus xml data into Flash are? Is there a huge speed difference between the two? For example say I’m loading the same amount of data from a text file and an xml file - which would be faster?
Any other benefits or disadvantages between the 2?
If you’ve got a small amount of data to load (like a single textstring), I suggest you use the txtfile, 'cause it’s a lot of work with getting the XML parsed in flash, and then it’s simply not worth it.
But if you’ve got a lot of data or data that you wan’t to be able to edit easy, the XML is preferable.
Case one:
You’re about to load the strings “Hello there little kirupian” and “Voetsjoeba is a belgian guy” into a flashmovie.
My choice: Text-file.
Case two:
You’re building a dynamic menusystem with 6 topMenus with 15 subMenus each. You load each menuItem from the external file.
My choice: XML-file.
I’m probably looking at something like case 2 with alot more variables. Any other good sources for learning how to parse XML with Flash? Once the XML is parsed in Flash can I do things like slice the string and turn it into an array?