In this tutorial, you will learn how to link buttons to external urls in Flash CS4.
When creating files in Flash, you may want to link to a webpage that is outside of the Flash file. For this, you will need an external url. This tutorial shows how to create this url and display it in a new window separate from your site. This is an effective technique that can be used when building websites within Flash.
stop();
youtube_btn.addEventListener(MouseEvent.CLICK, youtube);
function youtube(e:MouseEvent):void{
var youtubeLink:URLRequest = new URLRequest("http://www.youtube.com/user/rivercitygraphix");
navigateToURL(youtubeLink, "_blank");
}