A flexible actionscript 3 framework to handler socket connections