|
I am programming a game in flash and i have a piece which responds to keys.
The piece is suppose to move one space at a time and it does the first time you open the swf but unless you close and open it again and just recreate the board the piece responds twice an move 2 spaces instead of 1 and so on 3 to 4 each time you load it again without closing the program. I think Keyaddlistener registers the listener each time the board is recreated therefor incrementing the movement of the piece. how do i get around this?
|