# Please, help on Dynamic Event Handlers

**URL:** https://forum.kirupa.com/t/please-help-on-dynamic-event-handlers/114793
**Category:** Uncategorized
**Created:** [July 1, 2004, 8:32pm UTC](https://forum.kirupa.com/t/please-help-on-dynamic-event-handlers/114793 "2004-07-01T20:32:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chachyto](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@chachyto](https://forum.kirupa.com/u/chachyto)
#### Post date: [July 1, 2004, 8:32pm UTC](https://forum.kirupa.com/t/please-help-on-dynamic-event-handlers/114793/1 "2004-07-01T20:32:30Z")

</div>

Hi thr!

This is what I have:

1 movieclip with the following script on it:

onClipEvent (load) {  
divalpha = 5;  
\_alpha = 0  
}  
onClipEvent (enterFrame) {

```
if (this._parent.barra_nav1._x &lt;=350) {
	_alpha += (endalpha-_alpha)/divalpha;
	endalpha = 100
}

```

}

Which means that my mc wait till other movie (barra) reaches a certain point and then fades in.

What I need to accomplish:

I need that after this “marvelous” 🅱 fading in, if the user rollover the mc it fades back to 20% alpha using the same formula and fades back to 100% when the user rollout.

As I´ve declared in the enterFrame that the alpha is equal to 100% I´m not getting the results I need.

Ive been searching for tutorials on Dynamic Event handlers with no results but I’m sure there most be a way to overwrite the first enterFrame… :hangover:

HELP PLEASE!!!

Thx in adcvance
