HTTPService closure/callback
i trying implement closure example found on website somewhere alert not working. means call.handler not executing properly. here code:
public function getsomething(url:string):boolean
{
var httpservice:httpservice = new httpservice();
var call:object;
httpservice.url = url;
httpservice.send();
call = httpservice.send();
call.handler = function (event:event):void
{
alert.show("i here");
}
return true;
}
can tell me error? new actionscript , flex.
public function getsomething(url:string):boolean
{
var httpservice:httpservice = new httpservice();
var call:object;
httpservice.url = url;
httpservice.send();
call = httpservice.send();
call.handler = function (event:event):void
{
alert.show("i here");
}
return true;
}
can tell me error? new actionscript , flex.
can tell me why calling send method 2 times.
call once , check it.
call once , check it.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment