Sockets vs AMFPHP

Today I did some research on whether the flash project I’m working on would be better of using sockets or AMFPHP.

Turns out the biggest difference between the two of them is that sockets can push and pull and AMFPHP can only pull.
Push meaning that the server can send data back to my flash client when a change occurs.
Pull meaning that the client can ask the server for data on a certain event.

Of course the biggest advantage of AMFPHP is that it’s free. There are also free socket server scripts available, but then you have to be willing to host the server yourself.

This link was a very big help to me:
Flashfocus link (Dutch site)

In my case, sockets are the way to go … the main idea was to limit the bandwith that the client is using, so AMFPHP wouldn’t be a solution to my problem.

Search and replace actionscript

Have you ever had this problem with flash that when you get your XML from another programming language, they have it all mixed up with spaces and hard breaks …

Well, this website just saved me from it ;-)

http://www.tutorio.com/tutorial/actionscript-search-and-replace-in-flash

Just search and replace them to a nice “one-liner” ;)