I am wanting to create a tile based platform game, i have bin using tonypa's tuturoials as guidlines but i havnt been able to fine anything to help in tweeking sertain things and i am new to flash and arnt experianced enough i do it my self..

how would i create a new doors prototype so when the hero moves over the door instead of going to new map and x and y cordinates go to and stop on a difernet frame here is the following code for the orignal door statment

Code:
game.Doors = function (newmap, newcharx, newchary) { this.newmap = newmap;this.newcharx = newcharx;this.newchary = newchary;};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
and the actualy door placment
Code:
game.Tile2 = function () { };
game.Tile2.prototype = new game.Doors(newmap, newcharx, newchary);
this is also some code for the hero to check if there is a door dose this need to be changes aswell??
Code:
if (game["t_"+ob.ytile+"_"+ob.xtile].door and ob == _root.char) {