# Functions, Classes, Prototypes, WTH!

**URL:** <https://forum.kirupa.com/t/functions-classes-prototypes-wth/42827>\
**Category:** flash\
**Created:** [February 13, 2004, 8:22am UTC](https://forum.kirupa.com/t/functions-classes-prototypes-wth/42827 "2004-02-13T08:22:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gragland](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gragland/32/422_2.png) [@gragland](https://forum.kirupa.com/u/gragland)\
**Post date:** [February 13, 2004, 8:22am UTC](https://forum.kirupa.com/t/functions-classes-prototypes-wth/42827/1 "2004-02-13T08:22:14Z")

</div>

Ok, I finally figured out what functions are used for. They make it very easy to edit your code and make everything much cleaner and simpler. Am I right in saying that if you want a function to do a tween like effect (move an mc, easing, etc…) you have to put the function in an onenterframe or onclipevent so that the function is evaluated every frame? OK. But what are prototypes. I have Searched and searched, but I can’t see how prototypes are different from functions. Any clarification would be really appreciated!

---

<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:** [February 13, 2004, 11:32pm UTC](https://forum.kirupa.com/t/functions-classes-prototypes-wth/42827/2 "2004-02-13T23:32:47Z")

</div>

yes I question exactly how hard you searched :sure:
