# Creating your own functions?

**URL:** <https://forum.kirupa.com/t/creating-your-own-functions/210873>\
**Category:** Uncategorized\
**Created:** [December 23, 2006, 3:06am UTC](https://forum.kirupa.com/t/creating-your-own-functions/210873 "2006-12-23T03:06:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craze3](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@craze3](https://forum.kirupa.com/u/craze3)\
**Post date:** [December 23, 2006, 3:06am UTC](https://forum.kirupa.com/t/creating-your-own-functions/210873/1 "2006-12-23T03:06:55Z")

</div>

How would I go about making my own functions for objects and movie clips?  
Like:

```auto
onClipEvent(enterFrame){
this.setpos(10, 20);
}

```

and…

```auto
function setpos(x, y){
_x = x;
_y = y;
}

```
