Skip to content

Instantly share code, notes, and snippets.

@aqubi
Created August 30, 2009 14:10
Show Gist options
  • Save aqubi/177982 to your computer and use it in GitHub Desktop.
Save aqubi/177982 to your computer and use it in GitHub Desktop.
public function compileErrorTest():void {
var timer:Timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, function onTick(event:Event):void {
var httpService:HTTPService = new HTTPService();
httpService.addEventListener(ResultEvent.RESULT,
function http(event:ResultEvent):void {
httpService.removeEventListener(ResultEvent.RESULT, http);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment