base haxe flash and js remoting  use async