Lesson14.XML and Flash


Lesson 14. XML and Flash

Imagine what it would be like if every electrical appliance in your home had a different type of plug. Chances are you'd end up putting most of those gizmos back in the cupboard and doing the task manually. Or what if none of the screwdrivers or wrenches in your tool shed even came close to fitting the screws, nuts, and bolts that hold stuff together? Fortunately, neither scenario is likely because people figured out long ago that by creating products according to guidelines, or rules of standardization, they could have far more productive societies.

In essence, standards facilitate linkages between disparate itemsbattery and flashlight, Macromedia Flash and multiuser game server, and so on. And on the web, where tons of data are transferred every second, having a standardized way of moving data among systems is essential. The powerful and easy-to-use XML has become one standard.

The simple chat application that you will script in this lesson shows you how to connect a Flash application to an XML socket server.

In this lesson, we'll introduce you to the XML format as well as show you how to use the XML class and the XMLSocket class in Flash. By lesson's end, you will have made Flash talk to ASP pages for user login and registration, and you will have created a very simple real-time chat application using a socket server.




Macromedia Flash 8 ActionScript Training from the Source
Macromedia Flash 8 ActionScript: Training from the Source
ISBN: 0321336194
EAN: 2147483647
Year: 2007
Pages: 221

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