memory management - Deallocate sprites properly -
what proper steps deallocate played sprite?
- remove object stage
- call stop() method on sprite
- 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
Post a Comment