It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

I'm having trouble making a button in Flash 8...

Moderator: Phate

I'm having trouble making a button in Flash 8...

Postby EricStriffler on Sun Dec 16, 2007 5:06 pm

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?
EricStriffler
 
Posts: 2
Joined: Sun Dec 16, 2007 4:51 pm

Postby Tomi on Sun Dec 16, 2007 9:39 pm

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.
User avatar
Tomi
500+ Club
 
Posts: 925
Joined: Mon Jun 26, 2006 6:51 pm
Location: Essex, England


Who is online

Users browsing this forum: No registered users and 0 guests