There are some E4X operators and XML methods to help use do this when combined together:
.. Access all descendants of the XML object. . Access a property of an Object or XML. * Wildcard, match any part of the XML. childIndex() Index number of an XML object relative to its parent node. name() Name of the XML node.
You ever wanted an Object to move along the path of a curve?...a curve drawn with the ActionScript drawing API.
The curves drawn using the API are quadratic. Using the following expressions, you can plot an "x" or "y" value on a curve at a time between 0 - 1. You could even plot a "z" value for 3D if you wanted.
var x:Number=Math.pow(1-time,2)*startvalueX+2*(1-time)*time*controlX+Math.pow(time,2)*endvalueX;
var y:Number=Math.pow(1-time,2)*startvalueY+2*(1-time)*time*controlY+Math.pow(time,2)*endvalueY;
These are some functions I wrote for finding and replacing parts of XML using AS3.
Not sure if E4X or "XML.replace()" method can be used to make each function's task better.