How can I use ActionScript to parse XML?
Loading and parsing XML is a extremely useful for working with image content or any content. The Flash Player and ActionScript make all sorts of advanced data-driven functionality possible. New features become available with every upgrade – be sure to check the ActionScript API reference prior to implementing anything. Some simple information follows that may be helpful for those new to using XML data to populate a Flash application. Three steps are important: loading the XML, parsing it to an array, and using the Zoomify ActionScript API to load an image based on the data in the array. In the Zoomify Viewers this is handled via the Parameters.as class, as well as by specific methods within the calling classes. Some examples from the Zoomify Hotspot Viewer follow: public class Parameters extends EventDispatcher { //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //::::::::::::::::::::::::::::::::: INIT METHODS :::::::::::::::::::::::::::