Skip to content

Instantly share code, notes, and snippets.

@drewbourne
Created February 6, 2010 00:31
Show Gist options
  • Save drewbourne/296428 to your computer and use it in GitHub Desktop.
Save drewbourne/296428 to your computer and use it in GitHub Desktop.
[Test(async)]
public function asyncExample():void {
var target:EventDispatcher = new EventDispatcher();
Async.proceedOnEvent(this, target, Event.COMPLETE, 5000);
setTimeout(function() {
target.dispatchEvent(new Event(Event.COMPLETE));
}, 1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment