swf to avi converter

Tuesday, September 28, 2010

How to Insert Hyperlink Button in Flash

To create a hyperlink button in Flash is essential for flash learner. Below is an example, a button that points to an URL. Let us begin now!

Step 1:Open a new file in the Flash CS4. On the main stage, insert a new symbol,choose button type and name it as "more",also you can give a name to it as you like.

Step 2:You come to the "more" stage, draw / type the button you have finished in advance.Then go back to the main scene, open the Library window and drag a "more" instance onto the stage.

Step 3:Assign actions to the button in order that it will do what you want when it is being clicked. Make sure the "more" instance on the main stage is selected, then open the "action" window. Put the following code into the "action" window :

on(release)
{
getURL("http://www.swfkits.com", "_blank");
}

This will open the URL "http://www.swfkits.com" in a new browser window when the button is being clicked.You can also omit the "_blank" parameter if you want to open the url in the same browser window. By the way, you can also put another URL to replace the URL "http://www.swfkits.com".

You can have a try now! It is so easy.

No comments:

Post a Comment