hi, actionscript has no synchronose way to send packets - so, the callback is the result of asynchronose NetConnection.send() nature.
hope this helps, p.s. what is haxe and why did you pick as3 as prototype ? 2014-08-06 10:07 GMT+03:00 Jens Geyer <[email protected]>: > Hi *, > > while rewriting a clone of the AS3 generator to become a Haxe generator, a > question popped up. > > The way, how the generated AS3 code returns results from a service call > via two callbacks: onError and onSuccess. This looks somewhat unusual to me > and I plan to change that for Haxe to the usual model of return values and > exceptions thrown. > > However, I would like to learn why it has been designed this way for AS3. > Anyone around who can shed some light on this? > > Thanks, > JensG
