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 an experienced software engineer, sole blogger of JADBOX, author of FlashMVC, humanitarian, and has contracted work for Microsoft, Coke, and Disney.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • Furl
  • LinkedIn
  • Pownce
  • Reddit
  • StumbleUpon
  • TwitThis
Auto-Generated Related Posts:
  1. Countdown to Mobile Flash Player 10...

Tags: ,