—title should be: transitions made with hitTestObject—
I am trying to learn how to make a character move from one area to another using action script. I have the basic areas made with the doors as hidden objects that transition to a new area when the character runs into one. The transitions area working, but the transition from each area remains on the screen in the next so the character randomly jumps to other rooms after you have visited each of them. I have a lot more scripting to do to the project but I want this problem fixed before I move on and create more. The code is already up to 615 lines so posting it here is probably a little excessive. I do have a link here for the swf and I have added the code before it. I turned the code that should be handling the hitTest and removal of doors bold to make it a little easier to find, copying it over to display took away some of my formating.
http://webpages.charter.net/jschu3/game/my_test.html
I am hoping that someone can explain what I have done wrong and point me in the right direction. The graphics and character are very basic at this time. I am focusing on the code before I make it look good. Use the Up,Down,Left,Right arrow keys to make the arrow (character) move. I have made the doors visible to better understand where to go to make the jump from area to area.
Thanks for you time and assistance.
Josh