# Function Bank?

**URL:** <https://forum.kirupa.com/t/function-bank/27900>\
**Category:** random\
**Created:** [August 7, 2003, 6:36pm UTC](https://forum.kirupa.com/t/function-bank/27900 "2003-08-07T18:36:01Z")\
**Posts on this page:** 9\
**Page:** 2

<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:** [August 7, 2003, 6:54pm UTC](https://forum.kirupa.com/t/function-bank/27900/21 "2003-08-07T18:54:58Z")

</div>

i learned a LOAD of all sen’s post’s here and there :}  
and [http://proto.layer51.com](http://proto.layer51.com) is one of my favorieten(dam that’s dutch :sigh: )

😉 :sigh:

---

<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:** [August 7, 2003, 6:55pm UTC](https://forum.kirupa.com/t/function-bank/27900/22 "2003-08-07T18:55:09Z")

</div>

I am batman…you should submit that to FreddyThunder as a pickup line.

---

<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:** [August 7, 2003, 7:01pm UTC](https://forum.kirupa.com/t/function-bank/27900/23 "2003-08-07T19:01:28Z")

</div>

but he has changed his footer!!

---

<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:** [August 7, 2003, 7:04pm UTC](https://forum.kirupa.com/t/function-bank/27900/24 "2003-08-07T19:04:12Z")

</div>

Just wondering thor, isn’t it unnecessary to reverse something twice? Curious minds want to know 😉

…on a more relevant note, I have never used prototypes before, but they seem really useful! I may have to give that a shot sometime. I only barely started using Event Handlers a few weeks ago 🙂

---

<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:** [August 7, 2003, 7:05pm UTC](https://forum.kirupa.com/t/function-bank/27900/25 "2003-08-07T19:05:32Z")

</div>

> \*Originally posted by thoriphes \*using prototypes are a way to add a common function to an existing object type, like movieclip, or Array, or even math.

when you create a new object, a set of functions are available for that object. for example, array has split, pop, push, etc…you can add a function like reverseX2 like this:

```auto
Array.prototype.reverseX2 = function () {
this.reverse();
this.reverse();
};

```

which is completely unecessary (it reverses the order of an array twice :sigh:\*\*), **but for the sake of example, shut up!**

now everytime you make a new Array object, you can use that function:

```auto
arr1 = new Array();
for (i = 0; i < 10; ++i) arr1* = i;
arr1.reverseX2(); // array is now the same as it's always been, but we did something !

```

See how it works? mind you though, that prototypes will only work with the same objects. reverseX2 will not work on a MovieClip or Sound object. the keyword “prototype” is telling flash to apply this functions to all objects of this type.  
:whistle:

---

<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:** [August 7, 2003, 7:07pm UTC](https://forum.kirupa.com/t/function-bank/27900/26 "2003-08-07T19:07:03Z")

</div>

LOL! and a bomb from kirupa! 😉

---

<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:** [August 7, 2003, 7:10pm UTC](https://forum.kirupa.com/t/function-bank/27900/27 "2003-08-07T19:10:48Z")

</div>

haha, don’t worry thor - I was just twisting your leg…all the way around and into a pretzel 🙂

---

<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:** [August 10, 2003, 4:50am UTC](https://forum.kirupa.com/t/function-bank/27900/28 "2003-08-10T04:50:17Z")

</div>

[just a side note - I was searching my name]  
Master64 - you can still put in pickup lines at:  
[http://www.freddythunder.com/home.php?goto=footer](http://www.freddythunder.com/home.php?goto=footer)

hahaha!!!  
I got like 200 pickup lines in the four days it was up. I’ll update it soon!!

---

<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:** [August 10, 2003, 3:40pm UTC](https://forum.kirupa.com/t/function-bank/27900/29 "2003-08-10T15:40:52Z")

</div>

slammed by kirupa… the master of motion tweens 😉

[Previous page](https://forum.kirupa.com/t/function-bank/27900.md?page=1)
