Update hprose for ActionScript

Refactored some code for ActionScript.