Hello,
I did develop a global process, in which my customized objects do
have a 'die' method which is called in the end of an object's life in
order to clean *everything* (like removing internal movieclips,
sprites, listeners, timers, ..)
this is what I came up with: the following block code is part of
MyWhateverObject die method:
// basicNews is some basic Repeater ....
if (this.basicNews != null) {
this.basicNews.removeEventListener(RepeaterEvent.CLICK,
this.onNewsClicked);
this.removeChild(this.basicNews);
this.basicNews.die();
this.basicNews = null;
}
my question is the following: when would you call the basicNews.die()
method ? BEFORE or AFTER the 'this.removeChild(this.basicNews)' ?
tia,
Cedric
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders