This is useful when performing a small quick function that perhaps handles an event listener callback.

var onClickNavAway:Function = function(e:Event) {
navigateToURL(new URLRequest("link.html"),"_self");
}
addEventListener(MouseEvent.CLICK, onClickNavAway);

Author: Jonathan Dunlap
Jonathan is a veteran software architect, author of IsoHill, humanitarian, and has worked with Bigpoint Inc, CrowdStar, ePrize, and Microsoft.

Tags: ,