# Execute onEnterFrame

**URL:** <https://forum.kirupa.com/t/execute-onenterframe/78684>\
**Category:** Uncategorized\
**Created:** [February 7, 2005, 7:00am UTC](https://forum.kirupa.com/t/execute-onenterframe/78684 "2005-02-07T07:00:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frozenRage](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@frozenRage](https://forum.kirupa.com/u/frozenRage)\
**Post date:** [February 7, 2005, 7:00am UTC](https://forum.kirupa.com/t/execute-onenterframe/78684/1 "2005-02-07T07:00:40Z")

</div>

ok, should this work or am i barking up the wrong tree?

```auto
onEnterFrame = traceMe("test")

traceMe = function(param){
[indent]trace(param)
[/indent]}

```

if that won’t work then would someone explain how you get something to exectue a predefined function and pass a variable…
