# onEnterFrame() and \_currentFrame, help please

**URL:** https://forum.kirupa.com/t/onenterframe-and--currentframe-help-please/115522
**Category:** Uncategorized
**Created:** [July 9, 2004, 9:27am UTC](https://forum.kirupa.com/t/onenterframe-and--currentframe-help-please/115522 "2004-07-09T09:27:02Z")
**Posts on this page:** 1
**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: [July 9, 2004, 9:27am UTC](https://forum.kirupa.com/t/onenterframe-and--currentframe-help-please/115522/1 "2004-07-09T09:27:02Z")

</div>

Hi,  
I have an onEnterFrame in frame 1 which contains a function to fade in my MC. My MC fades in.  
I want that my MC fades out in frame 50.  
Do I have to go to frame 50 and put a keyframe and another onEnterFrame in frame 50 ? Or is there a way to control this by AS? I mean saying that myMC.\_currentFrame is 50?

Thanks  
mx-guest2004
