Thursday, August 30, 2007

I am a bit late to this party, but I just tried Powerflasher SOS and its a pretty neat tool. What is it?
POWERFLASHER SOS (SocketOutputServer) is a XML Socket server with a graphic user interface. Connected clients can send messages to SOS. These messages are shown in SOS. Further on commands from SOS to Client can be sent.I have a tool I use myself that allows for special tracing, but also allows for the inspection of anything in the SWF containing some special methods, allows me to call methods in the SWF, etc... all runtime (opposed to using something like XRay which uses snapshots). It works great, but uses LocalConnection -- and that proves to be a bit slow to be honest. Using a socket server is super fast. And this one is purty good. I couldn't get it to work in Parallels but its working great on my work PC. I got some internal error when I launched SOS. I think my Java is up to date but I need to check on that.
Anyway, you launch SOS (which has a passable GUI), and then use some socket code in your ActionScript like this:
myXMLSocket = new XMLSocket();And your Hello World string will populate the SOS window. Nice. I haven't tried sending commands into the SWF yet, but that shouldn't be too hard. I imagine that one could set things up to be generic enough to basically request/fire whatever you wanted and have it work.
myXMLSocket.connect( "localhost",4444 );
myXMLSocket.send( "Hello World" );
SocketStatus reports:
=============SocketStatus=============
LogPort is listening on Port:4444
CommandPort is listening on Port:4445
======================================







