Revision: 16052
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 24, 2009 10:37 by MacEvelly
Initial Code
btn1.addEventListener(MouseEvent.CLICK, myLink("http://www.MacEvellyIsAwesome.com/")); btn2.addEventListener(MouseEvent.CLICK, myLink("http://www.NoReallyHeIs.com/")); btn3.addEventListener(MouseEvent.CLICK, myLink("http://www.OkMaybeJustCool/")); function myLink(link:String):Function { var myLinkReturn:Function = function(evt:MouseEvent){ navigateToURL(new URLRequest(link), "_self") } return myLinkReturn }
Initial URL
Initial Description
Simplifies a button to use only one function for URL navigation.
Initial Title
Reusable URL function
Initial Tags
url
Initial Language
ActionScript 3