We now have a very sweet little object. All the code is on a single frame. All the graphics are on the other frame. It is completely independent. It works at any level of the object hierarchy. All the action is driven by events: It is instantiated at some point (in this example it starts when the movie starts, but that is certainly not necessary.) This event causes the XML to be created and the load to begin. Then the load itself causes the object's display of its data or its error messages. We have done a good job on a trivially simple XML file. Next we will undertake complex XML structures. |