Tuesday 24 May 2011

Creating a link to a website via flash.



box.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage);


function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}


This code will enable the user to click on the banner and then be re-directed to a website.

No comments:

Post a Comment