Scrolling with character problem (could be easy)

Ok, I have finally setup the scrolling on this little room/man in the fashion I want it (thanks to Jomans mario game tut). Anyways, I see a little bug and I’m kinda brainfarted right now since I’ve been looking at it for a bit.

Can someone see if they notice an error in my code that can remedy my problem?

The problem is, if you notice how when you walk UP the man stops at the white floor border of the room. Now walk all the way down to the bottom limit test. Then walk back up to the top wall. HEY! It changed the limit for some reason! :slight_smile:
Now his hair stops at the floor border, but I don’t want that. I want it to be exactly the same as when you first start the game.

Can anyone help me with this?

My files:
http://www.matthewcorway.com/walkingtest.html (To view the problem)
http://www.matthewcorway.com/walking.fla (To download my code)