# onEnterFrame with parameters

**URL:** <https://forum.kirupa.com/t/onenterframe-with-parameters/249692>\
**Category:** flash\
**Created:** [January 21, 2008, 8:46pm UTC](https://forum.kirupa.com/t/onenterframe-with-parameters/249692 "2008-01-21T20:46:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exodar](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Exodar](https://forum.kirupa.com/u/Exodar)\
**Post date:** [January 21, 2008, 8:46pm UTC](https://forum.kirupa.com/t/onenterframe-with-parameters/249692/1 "2008-01-21T20:46:44Z")

</div>

when assigning a function to onEnterFrame, for ex. onEnterFrame = someFunction, you do not include the brackets or the script will not run properly. my question is then, how can you assign a function to onEnterFrame while specifying parameters for that function?

I tried onEnterFrame = someFunction(param1), but the function will only execute once.

thx
