| I have received many requests from readers about creating links in Flash movies that will take your visitor to another website such as your eBay store. In most cases, this link will either be a button or a text link. In this tutorial, we will take a look at how to create a button link in your Flash movie. I am assuming that you have already created a button symbol that we will name "ebayButton" for the purpose of this tutorial. If you are reading this tutorial without a Flash project in mind, that's OK. We will use a built-in button component for demonstration purposes. If you are working on a Flash project, you might want to use different names for the symbol and instance names.
This code creates an Event Listener for your ebayButton (ebayButton.addEventListener) and when the button is clicked (MouseEvent.CLICK) Flash will preform the goWhere function which will send your visitor to your eBay store. | |



Save to Del.icio.us




