Flash
  Home arrow Flash arrow Page 4 - XML Sockets in Flash
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

XML Sockets in Flash
By: Richard Lyman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 24
    2002-04-02

    Table of Contents:
  • XML Sockets in Flash
  • Methods and Properties
  • Common Utilizations
  • Possibilities
  • Summary

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    XML Sockets in Flash - Possibilities


    (Page 4 of 5 )

    As I mentioned - where you go from here is up to you. XML has strength where other markup languages do not, in that it is a framework, not a finished product. You can define your data any way you'd like. As long as you code so that the clients and/or the server understand the language they speak, you can do anything, anyway you'd like.

    For example, how about your own graphical presentation of the newest article from your favorite web site?? Simple. Write your server app to accept a string like, "<infoRequest client='mySessionID'/>", grab the HTML page, filter out the content needed, and send back a reply to that client like, "<infoReply client='mySessionID'>The info you requested</infoReply>". Then it would be a simple matter in Flash to parse the XML reply from the server into the graphical representation you designed. Tied to personalization, a user can visit your web site, and see 'live' updates of the content they want - presented the way you/they wanted it.

    Speaking of requesting information and replying - how about minimizing the load your server experiences through HTTP requests for database information?? Many sites currently submit a new request for each segment of data that the client needs. Using Flash to maintain a persistent socket connection to your server, while the socket app running on your server also maintains a persistent connection to the database might allow you to funnel data to the client in 'real-time' with out the overhead of either page reloads, or new requests.

    There are other advantages as well. Since this entire system is simply a socket connection on each end, with XML being the preferred language, you could send strings of numbers that each end could interpret as actions/reactions to situations. Many websites have designed full server engines, and client environments that allow for 'real-time' multi-user content. Until a few months ago the main focus of a multi-user app has been for chat, but many others are looking to more diverse methods of enabling client interaction. While Quake has yet to make an appearance in Flash, multi-user 3D, as well as 2D and ISO environments exist.

    A benefit to the separation of ActionScript from other languages is that ActionScript can focus on the presentation of the data, and not necessarily the manipulation of it. If you've ever had some killer app that grabbed the data by the tail and swung it around, you might also want a simple means of delivering that data to others. Flash's graphical abilities combined with other languages data power though the XMLSocket object could be the answer.

    More Flash Articles
    More By Richard Lyman


     

    FLASH ARTICLES

    - Decorator Pattern
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT