For this tutorial I have used a free stock image of a light bulb for the button which is available at:www.sxc.hu
Open Url with button
Step 1
Open a new flash document.
Convert your button into a symbol by selecting F8. Give your button an appropriate name, check the button and click ok.
Step 2
Right click on your button and select “actions” and enter the following code:
on (release) {
getURL("http://www.ilike2flash.blogspot.com");
}
This line of code opens up the above Url in the same window. You can change the Url to whatever you want. If want to open the Url in a new window then add the “_blank” to the end eg. ("http://www.ilike2flash.blogspot.com","_blank");
Step 3
Test your movie Ctrl + Enter
You should now have a button which opens a url.



0 comments:
Post a Comment