# Function Prototype help

**URL:** <https://forum.kirupa.com/t/function-prototype-help/62630>\
**Category:** flash\
**Created:** [August 30, 2004, 2:29am UTC](https://forum.kirupa.com/t/function-prototype-help/62630 "2004-08-30T02:29:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fydus](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Fydus](https://forum.kirupa.com/u/Fydus)\
**Post date:** [August 30, 2004, 2:29am UTC](https://forum.kirupa.com/t/function-prototype-help/62630/1 "2004-08-30T02:29:54Z")

</div>

What does prototyping a function do?

i got this from the tile based games site.  
//////////////////////////////////////////////////  
game.Tile0 = function () { };  
game.Tile0.prototype.walkable = true;  
game.Tile0.prototype.frame = 1;

game.Tile1 = function () { };  
game.Tile1.prototype.walkable = false;  
game.Tile1.prototype.frame = 2;  
/////////////////////////////////////////////////  
game[name] = new game"Tile"+map\*[j];  
/////////////////////////////////////////////////

Can anyone explain prototyping?

A before hand thanks~

---

<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 30, 2004, 9:23am UTC](https://forum.kirupa.com/t/function-prototype-help/62630/2 "2004-08-30T09:23:19Z")

</div>

[http://www.kirupa.com/developer/oop/AS1OOPIntro.htm](http://www.kirupa.com/developer/oop/AS1OOPIntro.htm) :thumb:
