action script 3, problem with swapChildren and setChildIndex
hello there everyone!!! i am making a fighting game in action script 3, and i am having a problem with swapChildren and setChildIndex. the case is that the last fighter that attacked gets in front of the other so i use swapChildren(fighter_1,fighter_2).
While the fight is going on it works alright, but when the fight ends and i change the scene the two fighters that swaped depths during the fight still appear on the stage!! its like they have been duplicated!! does anyone have a solution ? thanks in advance!!!
