I'm a self learner of flash. Can someone help me to add html links to flash buttons?
1888-906-1888
9 AM - 8 PM PST
I'm a self learner of flash. Can someone help me to add html links to flash buttons?
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
Last edited by seawise; 09-13-2005 at 01:33 AM.
****RETIRED MODERATOR****
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.
Bookmarks