# Where would I put the onEnterFrame function?

**URL:** <https://forum.kirupa.com/t/where-would-i-put-the-onenterframe-function/236138>\
**Category:** flash\
**Created:** [August 17, 2007, 2:18pm UTC](https://forum.kirupa.com/t/where-would-i-put-the-onenterframe-function/236138 "2007-08-17T14:18:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [August 17, 2007, 2:18pm UTC](https://forum.kirupa.com/t/where-would-i-put-the-onenterframe-function/236138/1 "2007-08-17T14:18:44Z")

</div>

Hey all,

I am controlling a movieclips’ properties with some buttons. I’d like to just keep a button pressed down and it continuously change, but at current time…I have to keep pressing the button.

I know it needs the onEnterFrame function, but anytime I put it anywhere…it does not work.

Here is the file:  
[http://ata.saic.com/media/aj/buttons%20navigation.fla](http://ata.saic.com/media/aj/buttons%20navigation.fla)

Any help would be appreciated.  
Thanks in advance!
