Hey Rifled, "Maybe I'm biting off more than I can chew for my first AS2 project..."
I think your chewing a bit, but that alright, that's what brains are made for :) Why not simply parse your loaded XML structure and recreate the organization with your EXML objects? For an answer to your question: can you override the XMLNode creation for your own implementation, I think the answer is Yes and No! at least for Flash Player 8.0 and lower. You can always use the xmlObject.onData method to override the actual moment when the XML String gets parsed, and eventually implement your own parser code that checks the player version to call different ASNative calls according to the version (very hard to maintain (example: XMLNitro)). Or you could parse the XML string by hand, but that's too hard on your CPU if you're using player versions under 8.5. Basically the answer is no. Don't try! :) The reason why, is this: The Flash Player has its own build-in (Native) SAX XML Parser that returns an array of objects representing the nodes parsed. The XML API we commonly use in ActionScript, uses this build-in SAX Parser to get an Array of Objects ordered in the order they are parsed (like a SAX parser works). The XML implementation we normally use takes this array and creates children of type XMLNodes on himself. It's quite easy to implement, but the problem is that the address of the ASNative call might change from version to version of the Flash Player. It's not suggested to use this method. PS: the ASNative call would look a bit like this: (This is old code) this.status = ASnative(300, 0)(str, tags, false); But BEWARE this might not work in all version of the player. Don't try ;) One thing you might want to try is to associate some custom prototyped functions on the XML object to method prototypes in your own class. For example: XML.prototype.yourCustomMethod = EXML.prototype.yourCustomMethod; and this way, you might be able to have some functionalities with your XMLNode objects that your handling. Be aware of the context of the execution of your methods by the way! (This is like backtracking AS2 to AS1, not suggested either) Anyways, I think you should try simply iterating threw the received (parsed) xml to recreate your own structure, or something like that. One thing that might be interesting is if (Adobe) would provide us with a SAXParser which supports our own custom ContentHandler's that could permit us to handle the data "as its being parsed by the internal engine". I can see why they haven't implemented this in previous versions, but with upcoming versions, this sure would be nice to have, if possible. (but that's just my two little tiny cents) Good luck :) Fredz./ _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

