tags:

views:

9

answers:

0

My program has three classes: let's say the top one is container, the middle one is board, and the bottom one is piece. In the container class, I have the following statement: addChild(board). In the board class, I have the following statement: addChild(piece). The board class changes multiple times during the course of the program, with several draws/redraws and removeChild(piece)/addChild(piece). While this is happening, the container class is capturing user input and feeding it into the board instance to call the appropriate method (which is what should be causing the draws/redraws). For the life of me, I cannot get container instance (which is a parent to the board instance) to display the changes in the board instance until AFTER all draws/redraws are complete. This makes the program completely useless. Any help would be greatly appreciated.

Edit: Turns out I was being dumb. Used a while loop instead of an if during onEnterFrame. D'oh.