# Function

**URL:** <https://forum.kirupa.com/t/function/165051>\
**Category:** Uncategorized\
**Created:** [October 7, 2005, 4:21am UTC](https://forum.kirupa.com/t/function/165051 "2005-10-07T04:21:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookaburra](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kookaburra](https://forum.kirupa.com/u/kookaburra)\
**Post date:** [October 7, 2005, 4:21am UTC](https://forum.kirupa.com/t/function/165051/1 "2005-10-07T04:21:53Z")

</div>

If I need to assign the function **fMy\_Function to my\_MC.onEnterFrame**

Then it’s fine to write :

myMC.onEnterFrame = fMy\_Function;

but how to pass a parameter to fMy\_Function ?

N.B. I don’t want to use **=function(){ fMy\_Function(parameter1, parameter2); }**
