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.

can tell me why calling send method 2 times.
call once , check it.


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums