I am getting an error and can’t quite figure out what is going on - I have a player - Morris that uses an enter frame listener to move with the mouse. When I call remove - the listener is removed, stopping loop from being called, and the player is removed from the container. I stick a trace in loop, and a trace in remove and it goes like so:
morris remove self
TypeError: Error #1010: A term is undefined and has no properties.
Once removeSelf() is called, the listener is removed and loop stops… but I still get an error in loop()
It’s like the last enterFrame that was dispatched is still running?