Conclusion


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.



Flash and XML[c] A Developer[ap]s Guide
Flash and XML[c] A Developer[ap]s Guide
ISBN: 201729202
EAN: N/A
Year: 2005
Pages: 160

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net