memory management - Deallocate sprites properly -


what proper steps deallocate played sprite?

  1. remove object stage
  2. call stop() method on sprite
  3. set sprite variable null

is ok if remove stage , don't stop it?

the sprite instance receives tick display list, don't need stop prior removing it. ensure available garbage collection, remove display list , ensure null references may have created it.


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -