Thursday, April 11, 2013

stop;

function clickHandler(event:MouseEvent):void{
     if(event.target.name == "slide1"){
         navigateToURL(new URLRequest("http://www.digg.com"), "_blank");
     }
     if(event.target.name == "slide2"){
         navigateToURL(new URLRequest("http://www.msn.com"), "_blank");
     }
     if(event.target.name == "slide3"){
         navigateToURL(new URLRequest("http://www.google.com"), "_blank");
     }
 }
 container.addEventListener(MouseEvent.CLICK, clickHandler);

No comments: