rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780672323157

Xml in Flash

by ;
  • ISBN13:

    9780672323157

  • ISBN10:

    067232315X

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2001-12-18
  • Publisher: Sams Publishing
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $54.99

Summary

XML in Flashis an excellent introduction to creating state-of-the-art Flash applications with XML. XML is quickly becoming the most popular way to store and manage data. Flash's XML Socket makes it possible to network Flash front-ends to an application server. This allows developers to use a Flash interface for applications such as message boards, real-time chats, surveys, news feeds, and games.XML in Flashbegins by illustrating the basics of XML and the Flash XML Object. In Part I, Flash is used as a teaching aid as you learn the basics of Flash/XML integration. Part II covers how Flash works with middleware languages, such as PHP and ASP, as well as performance and optimization. You will also create a Flash message board with a database. Part III delves into the advantages of XMLSocket. Hands-on projects include creating a stock market ticker to receive XML data from servers. Finally, the appendixes include invaluable reference information on XML, XMLNode objects, and XMLSocket objects, as well as Frequently Asked Questions.The example applications also illustrate the key concepts necessary for understanding the Flash/XML relationship. You will be able to use the applications on the accompanying Web site regardless of whether or not you spend the time to read and learn about their inner workings.

Author Biography

Craig Swann has been an active member of the Flash community since it's early days and formed CRASH!MEDIA in 1997 as a way to express and explore this non-linear and interactive digital landscape. CRASH!MEDIA is a Toronto-based Interactive Design Agency that specializes in integrating fresh ideas with cutting edge technology. CRASH!MEDIA has worked on a wide range of Flash projects for the following companies: Coca-Cola, Intel, Alliance Atlantis, YTV, General Mills, University of Toronto, The Canadian Gemini Awards, MGI Software and the Toronto Symphony Orchestra. As well as creating Flash rich-media ads for the Excite @ Home Network, Last year, CRASH!MEDIA's Flash site received the Best National/International Design award at the South by Southwest Interactive festival, and so far this year has received the coveted Macromedia Site of the Week Award. CRASH!MEDIA is currently extending into new wireless markets, creating wireless applications for Flash enabled devices including PocketPC, set-top boxes and PDA's.

Gregg Caines has been a freelance Web developer for a number of years, pinch-hitting for a number of big name companies including RaceFace, Durex, Aramark, and Crash!Media. His specialties are Flash, ASP, and PHP, but he enjoys tackling new languages and technologies just as much. When he's not downing cola's and hacking out web apps, he enjoys snowboarding, punk rock, and long walks on the beach.

Table of Contents

(NOTE: Each chapter concludes with Summary and So What's Next? Section.)
Introduction.

I. INTRODUCTION TO XML IN FLASH.

1. An Overview of XML in Flash.
What Is XML? Why XML? What Can Flash and XML Accomplish Together?

2. The Details of XML.
The Basics. A Familiar XML Document Type: XHTML.

3. Getting Your Feet Wet.
Importing XML into Flash. The Basics of Flash's XML Object.

4. Using XML Data in Flash.
Whitespace, Thine Enemy. Rewriting the toString() Method. Creating a Custom toHTML() Method. A Graphical Representation of XML in Flash. Interactive Display of XML In Flash.

II. FLASH AND DYNAMIC XML.


5. Importing Dynamically Created XML Documents.
Server-Side Integration. Web Server Integration Methods. A Simple Flash/XML áHello World” Example. Creating a Directory Tree.

6. Creating XML Documents in Flash to Send to the Server. Transmitting Data from Flash to the Server. Creating a Dynamic News Box or Web Log. Importing Dynamically Created XML from the Server.
7. XML/Flash with Database Connectivity.
Structuring Your Data. Structuring the Flash File. Becoming a Member of a Message Board.

8. Performance and Optimization.
Performance Problems. loadVariables() Versus XML.load(): The Cage Match. Whitespace Handling.

III. FLASH AND THE XML SOCKET.


9. Introduction to the XML Socket.
The Purpose of the XML Socket. XML Socket Advantages. XMLSocket Difficulties.

10. Socket to Me!
Connecting to the Socket Server. Socket Event Handlers. Creating a Simple XML Server. Creating the Server in Java.

11. Creating a Multiuser Chat Application.
Establishing a Protocol: Let's Play Client and Server. Examining the Flash/Server Protocol Via a Telnet Connection. Deconstructing the Flash Client. Meanwhile, on the Server Side….

IV. Appendixes.


Appendix A. The XML and XMLNode Objects.
Methods of the XML and XMLNode Objects. Properties of the XML and XMLNode Objects. Collections for the XML and XMLNode Objects. XML() (Constructor for the XML Object Prototype). XML.appendChild (also XMLNode.appendChild). XMLNode.attributes. XML.childNodes (also XMLNode.childnodes). XML.cloneNode() (also XMLNode.cloneNode()). XML.contentType. XML.createElement (also XMLNode.createElement). XML.createTextNode (also XMLNode.createTextNode). XML.docTypeDecl. XML.firstChild (also XMLNode.firstChild). XML.ignoreWhite. XML.hasChildNodes() (also XMLNode.hasChildNodes()). XML.insertBefore() (also XMLNode.insertBefore()). XML.lastChild (also XMLNode.lastChild). XML.load(). XML.loaded. XMLNode.nextSibling. XMLNode.nodeName. XMLNode.nodeType. XMLNode.nodeValue. XML.onData(). XML.onLoad(). XMLNode.parentNode. XML.parseXML(). XMLNode.previousSibling. XMLNode.removeNode(). XML.send(). XML.sendAndLoad(). XML.status. XML.toString() (also XMLNode.toString()). XML.xmlDecl.

Appendix B. The XMLSocket Object.
Methods and Properties of XMLSocket. XMLSocket() (Constructor, Not Object). XMLSocket.close(). XMLSocket.connect(). XMLSocket.onClose(). XMLSocket.onConnect(). XMLSocket.onXML(). XMLSocket.onData(). XMLSocket.send().

Appendix C. FAQ.
Appendix D. Resources.
Flash Resources. XML Resources. ASP/XML: Resources. PHP/XML Resources. Socket Servers.

Index.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program