Moving of character

hi guys i have a problem with moving of my character in the tile base rpg game. could anyone looked into my codings and see if there is any mistake? i took examples from actionscript 1 but i am currently using actionscript 2. i tried to solve it for weeks but still stuck
any help would be appreciated.
thks