# Active & Visited Buttons

**URL:** <https://forum.kirupa.com/t/active-visited-buttons/62596>\
**Category:** flash\
**Created:** [August 29, 2004, 6:56pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596 "2004-08-29T18:56:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldylocks19](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@baldylocks19](https://forum.kirupa.com/u/baldylocks19)\
**Post date:** [August 29, 2004, 6:56pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/1 "2004-08-29T18:56:45Z")

</div>

Okay, i know how to code visited buttons. I know how I can make active buttons by making them go to an empty frame. I know there’s a way to code them so that it can be both active & visited. My question to you is how ?  
Here are some links in case my explanation did not make sense 😉

[color=#003366][http://www.2advanced.com/flashindex.htm](http://www.2advanced.com/flashindex.htm) ( check out the navigation )[/color]  
[color=#003366][http://www.prideprejudice.com](http://www.prideprejudice.com)[/color]  
[color=#003366][/color]  
[color=#003366]HELP !!![/color]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2004, 8:13pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/2 "2004-08-29T20:13:13Z")

</div>

prideprejudice isn’t done using flash…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 2:28am UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/3 "2004-08-30T02:28:01Z")

</div>

hmmm… sure seems to use the flash player on my web browser (pride and prejudice).

anyhow, are you making a hybrid html/flash site or a site completely in flash?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 6:05pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/4 "2004-08-30T18:05:31Z")

</div>

All in Flash

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 6:37pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/5 "2004-08-30T18:37:45Z")

</div>

can you explain a little more what exactly you want your buttons to do?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 7:27pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/6 "2004-08-30T19:27:24Z")

</div>

pride and prejudice sure seems to be made using basic html to me. it’s all \<img\> tags. try right-clicking on them.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 8:46pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/7 "2004-08-30T20:46:11Z")

</div>

What I want is for a button to show active when clicked. And for it to show as visited once another button has been click. Think of a photo gallery. When the user clicks on a button to load the picture, i want the button to change appareance and if the user clicks on it again ( while the picture is loaded ) for it not to load the same file. Now when the user clicks the button to view another picture, the picture that he saw before shows a different color ( for example ) so that he/she knows that picture has already been seen. I would get more examples of what I want, but Im at work ☹  
Does that help ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 11:04pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/8 "2004-08-30T23:04:25Z")

</div>

okay, i think me and cyberathlete are looking at different websites or something…

at any rate, what i would do is make your buttons movie clips, put a button in them and when it’s clicked, go to and stop at a frame where the text/button is a different color. that’s how you’ll know you’ve clicked on it… this’ll work fine, assuming that your movieclip/nav buttton will only load again when a visitor returns to your site/.swf.

the way to make it so you won’t reload a section you’ve already loaded is to use an ‘if’ statement to check and see if the section requested by the button is already loaded.

on (release) {  
if (\_root.selection != “links”){put as code here to load the links movie;  
\_root.selection = “links”;  
}else if (\_root.selection == “links”){stop;}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 11:05pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/9 "2004-08-30T23:05:55Z")

</div>

sorry, add another bracket thingy after the last one }

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2004, 9:21pm UTC](https://forum.kirupa.com/t/active-visited-buttons/62596/10 "2004-09-02T21:21:53Z")

</div>

thanks dude
