Basic Java server and AS3 client