I'm a self learner of flash. Can someone help me to add html links to flash buttons?
Help with Flash MX
I'm a self learner of flash. Can someone help me to add html links to flash buttons?
&nsbp;
#2
Posted 13 September 2005 - 05:26 AM
First make sure that the image you are using for the button has the type "button". If it is not, in the library you can right-click to it, and type>button. Or just convert it at the stage to button (select the image>press F8> check button).
Then on the main scene, select the button with the black arrow and at the bottom open the Actions panel (make sure that your button is still selected) and add this code:
on (release) {
getURL("http://www.domain.com/");
}
That's giving links to buttons. If you want to add links to texts, then it is easier. You just select the text, and in the bottom of "properties panel" you will see a link icon. You can just directly write your link to there.
By the way, I am talking about MX 2004.
Hope this helps.
Cheers,
Seawise
Then on the main scene, select the button with the black arrow and at the bottom open the Actions panel (make sure that your button is still selected) and add this code:
on (release) {
getURL("http://www.domain.com/");
}
That's giving links to buttons. If you want to add links to texts, then it is easier. You just select the text, and in the bottom of "properties panel" you will see a link icon. You can just directly write your link to there.
By the way, I am talking about MX 2004.
Hope this helps.
Cheers,
Seawise
****RETIRED MODERATOR****
#3
Posted 14 September 2005 - 06:32 PM
Don't forget that if you want the image to be displayed in a new browser window you will need to add the "_blank" parameter in the geturl too.
on (release) {
getURL("http://www.domain.com/","_blank");
}
Or if you are using frames substitute the _blank for the name of the frame you want the link to be opened.
on (release) {
getURL("http://www.domain.com/","_blank");
}
Or if you are using frames substitute the _blank for the name of the frame you want the link to be opened.
Will
"There are two ways of spreading light: to be the candle or the mirror that reflects it" (EDITH WHARTON)
-- NEW Portfolio --
"There are two ways of spreading light: to be the candle or the mirror that reflects it" (EDITH WHARTON)
-- NEW Portfolio --
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users