Hey all,
in my main I have a system that allowed certain classes to be loaded and unloaded. When I load Game.as, it contains a trace statement when you press the left arrow key. When I remove the game instance from the stage, and set it to null, I can still press left arrow key, and the trace will come up. If I then make a new instance of game, it traces twice with only 1 click. When I close/load another time it traces three times. How is this possible?
I very specifically set:
mainContent.removeChild(game);
game = null;
Even trace statements confirmed that the game was being nullified, and the trace still continued. Any idea what’s causing this, and how I can prevent it?