天哪,Flex有没有阻塞方式啊?

全是回调函数,折磨死了!

碰到返回值的更麻烦

public function Main():void{

var rs2:Responder=new Responder(onUpdateCust,onStatus);
Comm.getInstance().myNC.call("Flubrx.SrvCust.updateCustomer",rs2,myCust1,myUsers,Comm.getInstance().myLoginUser); 

}

private function onUpdateCust(result:Boolean):void{
                if(result)                
                    Comm.getInstance().showMessage(Msg.BRX101);    
                else
                    Comm.getInstance().showMessage(Msg.BRX501);
                Comm.getInstance().endSubmit();
            }

private function onStatus(event:Object):void
            {
                Comm.getInstance().endSubmit();
                Comm.getInstance().showMessage2(event);
            }       

快崩溃了~...

原文地址:https://www.cnblogs.com/4kapple/p/1858430.html