the trace outputs of a variable is different from one class to the main
this is an rpg game where my character walks around the field and a battle scene randomly comes up and you have to fight the monster.
when the battle scene comes up, my character stops moving and it enters the battle scene. When the battle is finished and i press an okBtn to return to the field, my character is expected to start moving again which worked for a while. but now it doesnt. There is an endTheBattle variable which is false the whole game time.
When i press the okBtn, it makes it endTheBattle true for one split second and then becomes false. When the endTheBattle is true, it re adds the enter frame evnet listener which should make the character move again. However it doesnt work. I trace the variable in the main class and i see the 'true' come up. But when i trace it in my character class which holds the enter frame event listener, it doesnt come up.