# Appending functions to an onEnterFrame

**URL:** https://forum.kirupa.com/t/appending-functions-to-an-onenterframe/223461
**Category:** flash
**Created:** [April 23, 2007, 1:49am UTC](https://forum.kirupa.com/t/appending-functions-to-an-onenterframe/223461 "2007-04-23T01:49:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [April 23, 2007, 1:49am UTC](https://forum.kirupa.com/t/appending-functions-to-an-onenterframe/223461/1 "2007-04-23T01:49:59Z")

</div>

if i have a function attached to a movie clips onEnterFrame, can i somehow add another function to be executed, in a way that doesnt replace the old function…

sort of like

```auto

my_mc.onEnterFrame = function():Void {
    trace("function 1");
}
my_mc.onEnterFrame += function():Void {
    trace("function 2");
}

```

but obviously that doesnt work :cross-eye
