# Trouble with fade onEnterFrame

**URL:** <https://forum.kirupa.com/t/trouble-with-fade-onenterframe/217258>\
**Category:** flash\
**Created:** [February 24, 2007, 9:39pm UTC](https://forum.kirupa.com/t/trouble-with-fade-onenterframe/217258 "2007-02-24T21:39:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![golden14](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@golden14](https://forum.kirupa.com/u/golden14)\
**Post date:** [February 24, 2007, 9:39pm UTC](https://forum.kirupa.com/t/trouble-with-fade-onenterframe/217258/1 "2007-02-24T21:39:40Z")

</div>

Hello,

I’m still learning AS, so I’m sure I’m overthinking this and that there is a simple solution.

Say I have 2 mc’s on the root level (blue and yellow), and another mc (red) inside of the blue mc.

Using AS, I want to set it up so that when the red mc is clicked, its alpha fades to 0. Then when the yellow mc is clicked, the red mc’s alpha fades back to 100.

I think I need an onEnterFrame somewhere, but I can’t seem to figure it out. I included a sample file. Any help would be appreciated, thanks!
