PDA

View Full Version : Make a button to highlight for current page


jplain
08-12-2008, 05:45 AM
Hello everyone, I think this must be simple but I cannot find anything on how to do it (I've been searching for a hour).

I have a flash site where all the menu tabs are white. I want the tab for the current page to be a different color, so that the visitor knows what page he is on.

For example, if the visitor is on the "about" page, I want the "about" tab/button to be a different color.

Can somebody show me how to do this in actionscript (or another way?). I am a newb at this so please explain in great detail, thank you so much for your help.

atomic
08-12-2008, 05:50 AM
You better attach your .fla and your first .html to this forum...

This can't be easily explained in a few lines...

andrew444
08-12-2008, 06:37 AM
jplain:

Atomic is right. This can't be easily explained unless someone is able to see your code, or a portion of something like what you are trying to get done.

A major question that come to mind looking at your issue:

Is the site 100% Flash, or are you just using a Flash-based menu/navigation system for your site?

This is a very helpful forum if you're able explain and showcase your issues. Best of luck.

Andrew444

atomic
08-12-2008, 06:40 AM
The following thread, assuming I understood your request, is exactly what you're going for...

http://www.actionscript.org/forums/showthread.php3?t=178493

jplain
08-12-2008, 02:35 PM
Hello,

Thanks for replying! =)

The site is 100% flash, which I inherited to make changes (I didn't build it). The entire site is built in 1 scene, so would I have to upload the whole site?

Here is the existing button code:

on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release) {
if (_root.link<>2) {
_root.link = 2;
_root.play();
}
}

I also attached screenshots of the action: the first is the button/tab in regular state, the second is in rollover/down state, showing the above code.

atomic, I'll check out that link later (have to work) - thanks!

Let me know if you need anything else and thanks again.

atomic
08-12-2008, 02:59 PM
Ahhhhhhhh! A template! And you're not talking about different .html pages, but pages within the template...

Then that link I posted above is not for you...

And templates are so poorly coded, that you'll need to provide the .fla, so someone can suggest a workaround...

jplain
08-12-2008, 03:15 PM
The zipped .fla is 7,074KB - much larger than the max allowable upload file size. What can I do? :/

atomic
08-12-2008, 03:22 PM
You can use a file sharing site as www.rapidshare.com to upload the file and then provide the link to download it from...

jplain
08-12-2008, 03:48 PM
d'oh lol. ahh.. too much happening at once. :-o

Never used Rapidshare before, though; very easy.

Here's the link to the zipped .fla -
- link removed during testing -

atomic
08-12-2008, 04:51 PM
What do you mean by tab... The small rectangle below and to the right of each menu item?

jplain
08-12-2008, 05:08 PM
Yes - the button/tab graphic symbol name is "butt.png".

I just made and attached a colored button/tab to use for the 'current page' button

Thanks so much - I just don't know how to make this work..