Tuesday, November 15, 2005
Flash tip: Using a button to open a Web page
As I went over in class last time, to make a button cause a Web page to be opened in a browser window, you just need to follow these steps:
1) Create a button and save it to the library.
2) Create a new layer and drag the button to it.
3) Select the button.
4) Open the Actions panel and do these steps in the Actions panel:
Global Functions>Movie Clip Control>On>Release
Global Functions>Browser Network>Get URL
Then add the URL, in quotes. The resulting script should look just like this:
On (release) {
get URL ("http://www.towson.edu");
}
1) Create a button and save it to the library.
2) Create a new layer and drag the button to it.
3) Select the button.
4) Open the Actions panel and do these steps in the Actions panel:
Global Functions>Movie Clip Control>On>Release
Global Functions>Browser Network>Get URL
Then add the URL, in quotes. The resulting script should look just like this:
On (release) {
get URL ("http://www.towson.edu");
}