| View previous topic :: View next topic |
| Author |
Message |
EricStriffler
Joined: 16 Dec 2007 Posts: 2
|
Posted: Sun Dec 16, 2007 6:06 pm Post subject: I'm having trouble making a button in Flash 8... |
|
|
Now I've made plenty of buttons before but this is the first I've tried to make in Flash 8.
For some reason every time I try to do it it tells me there's a problem in the script. SOmeone told me rather thab put the "GetURL" part on the button itself, I should put it on the frame. But all that did was make it immediately get the url as soon as it got to that frame.
Can anyone tell me what to do to make the button work? |
|
| Back to top |
|
 |
|
|
Tomi 500+ Club

Joined: 26 Jun 2006 Posts: 809
|
Posted: Sun Dec 16, 2007 10:39 pm Post subject: Re: I'm having trouble making a button in Flash 8... |
|
|
I am no actionscript expert but you need something along these lines...
myBtn_btn.onRelease = function(){
getURL("http://website.com","_self");
};
^^ that might not work as i probably wrote it wrong but change the myBtn_btn to the name of your button and change the web address to your site then put that script on a key frame on a separate layer at the same point as the frame your button is on.
Hope that helps. |
|
| Back to top |
|
 |
|