# Problem with onEnterFrame. Please help!

**URL:** <https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117>\
**Category:** Uncategorized\
**Created:** [May 23, 2004, 7:38pm UTC](https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117 "2004-05-23T19:38:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)\
**Post date:** [May 23, 2004, 7:38pm UTC](https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117/1 "2004-05-23T19:38:42Z")

</div>

Hi,  
I have a short movie. In frame 1 some MCs appears on the stage by onEnterFrame and increasing \_alpha. In frame 50, I want to zoom on these MCs by AS. The problem is that the fading continues even I have a if condition not to do that. How can I tell the movie stop fading and begin to zoom in frame 50?

thanks

mx-guest2004

---

<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:** [May 25, 2004, 6:43pm UTC](https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117/2 "2004-05-25T18:43:15Z")

</div>

you sure your timelines playing through past 50 (no stop action anywhere)? Try checking to see if it’s even reading the script by

```auto

onClipEvent(load) {
this._alpha = 0;
}

onClipEvent(enterFrame) {
if(this._currentframe < 50) {
this._alpha += 5;
}
else {
trace("it's reading");
}
}

```

---

<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:** [May 25, 2004, 7:19pm UTC](https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117/3 "2004-05-25T19:19:28Z")

</div>

Sandman9,  
The MC’s \_alpha goes from 0 to 100 and stops with the MC (\_alpha=100) on the stage. No message. I don’t have anything between frame 1 and frame 75. Just a keyframe in frame 1, another one in frame 75 and a MC on the stage. No stop(); .  
Strange! isn’t it?

mx-guest2004

---

<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:** [May 26, 2004, 6:17am UTC](https://forum.kirupa.com/t/problem-with-onenterframe-please-help/111117/4 "2004-05-26T06:17:36Z")

</div>

More help on this, please?

mx-guest2004
