[Flash8]for loop question

Please help :frowning: Really want to know the script for this one.

How to loop this script:
here is the basic script of tiles:
game.Tile0 = function(){ };
game.Tile0._prototype.__proto = game.TileClass.prototype;
game.Tile0._prototype.frame = 1;
game.Tile1 = function(){ };
game.Tile1._prototype.__proto = game.TileClass.prototype;
game.Tile1._prototype.frame = 2;

so if i have like 50 tiles those 3 lines will be multiplied by 50,
i want to loop it tried with array but failed :frowning:

so basically i want to loop it like this:
var tile_Num = 50;
for(var i=0; i<tile_Num; ++i){
var tile_Name = “TILE”+i;
game.tile_Name = function(){ };
game.tile_Name._prototype.__proto = game.TileClass.prototype;
game.tile_Name._prototype.frame = 1;
}

i know there’s something wrong with it and i need help hehe, Thanks in advance :slight_smile: