logo_michael-thomas.jpg (3143 bytes)

Flash 5 XMLSocket Object

Use at your own risk!

Flash5 XMLSocket Object

bulletClick here (~23k) - to download the source (Java & Flash5) example of using the Flash5 XMLSocket object to connect to a Socket Server.  You must have the Java Socket Server and the Flash5 XMLSocket running on the same host domain.
bulletRun the socket server - Flash5SocketServer.class
bulletFlash5 test Web page - Flash5Socket.html - This test will run the XMLSocket.connect(hostname, port) but will not actually try to connect because the hostname is not in the same host domain.  Even if you change the domain to "michael-thomas.com" it will try to connect, however I don't have a server running at that domain.  I normally test on my local machine.
bulletYou can also run the projector (Windows .exe  or MAC .hqx).
bulletClick here (~377k)- download the Windows .exe player.
bulletClick here (~687k)- download the MAC .hqx player.
bulletOther Flash5 XMLSockets
bulletMoockComm - www.moock.org
bullethttp://www.moock.org/chat/moockComm.zip - download.
bullet http://www.tupps.com/flash/faq/xml.html - Also excellent FAQ on Flash XML.
bulletAquaServer by Brandon Hall
bullethttp://www.figleaf.com/development/flash5/ - Look for aquaServer download link.
bulletwww.figleaf.com/development/flash5/aquaserver.zip - download.
bullethttp://www.webdevindex.org/Detailed/999.html  ???
bulletMultiServer - www.shovemedia.com/multiserver . Server written in Java. XML routing server meant for use with Flash 5 clients.
bulletFlashNexus
http://www.flashnexus.com
Freeware. Source code available.
Windows based server software built specifically for chat. Well-built freeware with MS Access database functionality and the ability to build custom tags. Allows execution of SQL statements from flash.

MAC & Flash5 XMLSocket

bulletMAC problems with Flash5's XMLSocket object causing a CRASH (IE or Netscape).
bulletHELP - If anyone has a solution to this problem please email me at thomasma@us.ibm.com
bulletIf you connect to a socket (or attempt to connect), then close the window/document and then Apple-Q the process the MAC will HANG (sometime shows an error or may freeze - in all cases you must reboot).  This is almost solid with IE and intermittent with Netscape.  The above link will give you the source so you can test. 
bulletThe test above ("Flash5Socket.html") will not hang the MAC if the hostname is "127.0.0.1" because Flash5 will not attempt to connect to a socket outside of the current host domain.  Download the files and run it on the local MAC to see the crash.
bulletNote: If you change the hostname to michael-thomas.com then it will try to connect.  I've had varying results on a MAC: sometimes will hang if you close the document, then Apple-Q the process or shut your MAC down.
bulletMy environment which crashes
bulletOS9.1
bulletIE 5 w/Flash5 v41
bulletNetscape v4.78 w/Flash5 v41
bulletOther's that crash
bulletOS9.2 G4 IE5.5
bulletOS9.1 G4 IE 5 - crashes less frequently.
bulletOS9.1 G3 IE 5  - crashes less frequently.
bulletWorkaround - Some environments crash less if you close process by:  Menu, File, Quit.
bulletInstallation steps
bulletDownload the above .zip file: Flash5Socket.zip .  It is the first link on this page.
bulletYou must have the MRJ SDK (Java SDK) installed.  Click here for more information.
bulletCreate a file that will launch the SocketServer application.
bulletOpen the folder which contains the files you extracted.
bulletDouble click on your drive icon.
bulletOpen the following folders (your versions may be different):
MRJSDK2.2\Tools\Applications Builder\JBindery
bulletDrag the Flash5SocketServer.class file onto the JBindery file.
bulletClassname: Flash5SocketServer
bulletOptions: 8888  <your can leave blank or use any port #>
bulletClick on "Save Settings"
bulletType:  Flash5SocketServer 8888
bulletClick "Save"
bulletClick "Run"
bulletFrom now on you may double click the new file that was created and run the SocketServer:  Flash5SocketServer 8888
bulletNow double click on Flas5Socekt.html
bulletClick on "Socket: Open" - This will open the XMLSocket
bulletClick on "Send XML" - This will send data to the socket.
bulletForums on the MAC problem.
bullethttp://groups.google.com/groups?as_q=xml%20socket%20mac&as_ugroup=macromedia.flash&hl=en
bulletLinks to Flash support & Forums.
bullethttp://www.macromedia.com/support
bullethttp://www.macromedia.com/macromedia/customer_service/
bullethttp://www.macromedia.com/support/email/wishform/?6213=19 - Bug reporting.
bullethttp://www.macromedia.com/support/forums/ - Flash Forums.
bullethttp://www.macromedia.com/support/flash/ts/documents/xml_content_type.htm - New XML Object features of Flash Player 5 re-release
bullethttp://www.macromedia.com/shockwave/welcome/ - Check the version of you Flash Player.  The version number should show up in the lower right hand corner of the Macromedia Flash movie in the "Macromedia Flash Player" section when it has finished playing. Mouse over the "About" button to see the version number.