Nice(r)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Weyert de
Boer
Sent: vrijdag 20 februari 2009 14:35
To: Flash Coders List
Subject: Re: [Flashcoders] Display Object Container refresh ...
var n: Number = container.numChildren;
while ( n-- ) {
container.removeChildAt(n);
}
sounds better ;) less problems when you start from the bottom is my
experience.
> You have a class with a public DOC (DisplayObjectContainer).
>
> This DOC contains all the visual assets of your class.
>
> In you refresh/reset/constructor method, do you use either:
>
> container = null;
>
> or a loop to manually remove all display objects within the container, eg:
>
> if (container != null)
> {
> if (container.numChildren > 0)
> {
> for (var i = 0; i < container.numChildren; i++)
> {
> container.removeChildAt(i);
> }
> }
> }
>
> Um ... that's it.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.10.25/1957 - Release Date: 02/19/09
18:45:00
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders