Originally Posted by
AttackRabbit
In 90% of cases your code should work. if you want to get super technical , you should have a kill() or shutdown() method you call before you remove it from the display list.The kill or shutdown would remove any event listeners inside VidPlayer(), set any reference variables to any other class objects to null , stop any timers or enterframes , etc. I wouldnt so much worry about having the VidPlayer class remove all of its children, just any that could be problematic.
Once your shutdown process is complete , i would dispatch an Event to the parent class , to then remove the caller from the display list and set its value to null , just like you have it.