# Wonder if anyone can help

**URL:** <https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018>\
**Category:** Uncategorized\
**Created:** [January 25, 2003, 10:56am UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018 "2003-01-25T10:56:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Llyd](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Llyd](https://forum.kirupa.com/u/Llyd)\
**Post date:** [January 25, 2003, 10:56am UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/1 "2003-01-25T10:56:41Z")

</div>

Hi,

Im new to these forums, but I hope anyone will be willing to help with a little problem I have run into.

Basically, I am trying to design a menu in which when one option is rolled over, all the other options fade to 50% opacity in order to cause the current one to stand out.

I have got this far, but onRollOut I want to have the rest of the options fade back in from whatever point they were to create a perfectly seamless animation.

[This file](http://www.graevis.com/test/test.swf) shows how far I have got.

Hope that makes sense. I would appreciate any help you are willing to give.

Regards,

Llyd

---

<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:** [January 25, 2003, 12:22pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/2 "2003-01-25T12:22:12Z")

</div>

Ok, the swf clearly shows the problem, but to solve it we’d need a look at the code you used…!  
Basically what you wanna do is use a status variable, each btn onRollover sets it’s own to 1 and the others to 0, and for the alpha, just check on the status…if it’s 1, alpha =100, if ti’s 0, alpha=50…of course, reset all to 0 onRollout…  
Depends on how you coded that…you can alos use a loop through an array with all the btn references in it to set all to 50 except the current one…different methods are possible…

---

<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:** [January 25, 2003, 12:23pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/3 "2003-01-25T12:23:35Z")

</div>

I understand the concept, but actual code is helpful for me as I am a visual learner.

The .fla file is attached

---

<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:** [January 25, 2003, 2:44pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/4 "2003-01-25T14:44:33Z")

</div>

Ok, I have made some progress. However it is still not quite there because you have to wait for the entire rollOver or rollOut animation to complete before you can move to the next option without screwing the whole thing up.

[http://www.graevis.com/test/test2.swf](http://www.graevis.com/test/test2.swf)

I have attached the new source .fla file for you all to look at.

---

<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:** [January 25, 2003, 2:54pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/5 "2003-01-25T14:54:55Z")

</div>

i made this to give you an idea on how to change the alpha  
no tweens … just actionscript

hope it helps =)

[size=1]**[EDIT]**[/size]  
i forgot to say … the code is explained in option1

---

<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:** [January 25, 2003, 3:10pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/6 "2003-01-25T15:10:44Z")

</div>

I didnt realise there was a fader function in actionscript. :sure:

Thankyou. It is perfect, and so much simpler.

---

<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:** [January 25, 2003, 3:27pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/7 "2003-01-25T15:27:14Z")

</div>

oh no!! there’s no fader function :crazy:

it’s only the name i gave to the prototype  
you can change it to anything you want

sorry if i confused you :-\

by the way … there’s like a million ways to do that  
i could try something different if you want me to

---

<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:** [January 25, 2003, 3:50pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/8 "2003-01-25T15:50:15Z")

</div>

Well, it works great at the \_root level, but as soon as I try to drop the clips and code into a sub movie Clip, it doesnt work. Any ideas?

---

<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:** [January 25, 2003, 3:54pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/9 "2003-01-25T15:54:30Z")

</div>

post your file so i can fix it [size=1][i hope 😛][/size]

---

<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:** [January 25, 2003, 4:18pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/10 "2003-01-25T16:18:47Z")

</div>

here ya go…

---

<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:** [January 25, 2003, 4:34pm UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/11 "2003-01-25T16:34:10Z")

</div>

ehmm … you forgot to give the instance name to menu 👁

it works now :beam:

---

<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:** [January 26, 2003, 11:41am UTC](https://forum.kirupa.com/t/wonder-if-anyone-can-help/12018/12 "2003-01-26T11:41:40Z")

</div>

What a donut I am. heh. Thanks Kax. Its all working great now.
