Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created March 8, 2011 16:10
Show Gist options
  • Save planetoftheweb/860460 to your computer and use it in GitHub Desktop.
Save planetoftheweb/860460 to your computer and use it in GitHub Desktop.
Make a button that is also clickable to a url. The button should be called gotosite_btn
gotosite_btn.addEventListener( MouseEvent.CLICK, onButtonClick );
function onButtonClick ( event:Event ):void {
navigateToURL(new URLRequest('http://planetoftheweb.com'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment