Hi,
Im trying to make a website and am having big problems getting the buttons to work how I'd like. Im guessing I need to write some actionscript.
The animated buttons change from red to yellow on the UP state then from yellow to red on OVER and finally white on click.
Ive managed to mask the buttons on website entry so that you dont see the initial red to yellow state you just see four yellow buttons fade in. The thing is that when you click on a button and go to another page all the buttons reset themselves and so you see the red to yellow state for the remaining buttons that havent been clicked.
How do I get it so that when you click a button the others dont reset themselves. Check out the site so far to see what Im talking about. StefanCostain.com
Flash 8 by the way.
Thanks loads to anyone that can help!!!
Thanks lots, I took a quick look but these links dont seem to resolve the problem. I just need the buttons not to refresh every time you open another page. They do this because the UP state is a movie clip as is the OVER state. Basically I need the end of the movie clip of the UP state to remain for buttons when I go to another page in my site but then work if the mouse is rolled over that button then rolled off (the UP state).
You'd have to work with variables. Post your .fla (you'll only need to post the part with the buttons) and I'll fix it for you.
aut.
Thanks loads, very kind! I've tried to send you one of the buttons .fla file. I hope it comes through correctly. See if you can work your majic on it.
Thanks again!
Last edited by stefancostain; 11-29-2007 at 10:12 AM.
Actually it doesn't work as well/easy as I first thought. I'm having trouble getting the buttons to goto a frame or scene when clicked. I tried a couple of things but can't get them working proparly. I think Ive got to add something like
If "PortBtn" active = true;
then gotoframe
else
"resume" active = false;
Added a movie-clip (instance name: "contents"). This is where your contents go.
Good luck,
aut.
Ah wow thanks! Ur really good at this arnt u, where did u learn all ur stuff?
Thanks once again sooo much. Saved me loads of time and effort. I was getting nowhere trying to do this myself. Very greatfull!
Stefan
Hi,
I've been working on my site http://stefancostain.com/ but have ran into a problem relating to those buttons you helpped me with.
Do you see the guestbook. This is on the main timeline because if I put in the "contents" movie clip then it doesn't work correctly.
I'm trying to get the "Contact me" button, which takes you to the "content" movie clip and frame label "Contact me" section, to take me to frame 290 of "Scene 1"
I've typed ("Scene 1", 290) and put this in different parts of the file trying to replace code ect but I can't get it to work.
Hey Stefan,
Your description is a bit vague. In general, it's not a good idea to mess around with the root-timeline when working with the code I initially provided. Upload the problematic array of your Flash-file and I'll see what I can do.
aut.
Last edited by austriaman; 02-13-2007 at 09:23 AM.