# Function call

**URL:** https://forum.kirupa.com/t/function-call/33580
**Category:** Uncategorized
**Created:** [October 21, 2003, 8:29am UTC](https://forum.kirupa.com/t/function-call/33580 "2003-10-21T08:29:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ali\_bongo](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@ali\_bongo](https://forum.kirupa.com/u/ali_bongo)
#### Post date: [October 21, 2003, 8:29am UTC](https://forum.kirupa.com/t/function-call/33580/1 "2003-10-21T08:29:37Z")

</div>

Hi there, im currently using an onEnterFrame=function() comand, which works fine - but ive just been asked to make my movie flahs 5 compattable ☹

heres the code

on (release){  
\_root.sections.onEnterFrame=function(){  
\_root.sections.\_x-=(this.\_x-1103)\*.25  
}  
}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 21, 2003, 9:56am UTC](https://forum.kirupa.com/t/function-call/33580/2 "2003-10-21T09:56:59Z")

</div>

flash 5 doesnt have an onEnterFrame event. Instead, you’d need to manually set up an onClipEvent(enterFrame) _on_ the movieclip and handle it that way.

To make it easier on yourself, all you’d basically need to do is select \_root.sections and add to it:

```auto
onClipEvent(enterFrame){
this.onEnterFrame();
}

```

and that should about cover you.
