This content has been marked as final. Show 3 replies
"istrasci" <email@example.com> wrote in message
> The Flex documentation for the returnChild method of the
> Container class says: "Removes a child DisplayObject from the
> list of this Container. The removed child will have its -parent- property
> to -null-. The child will still exist unless explicity destroyed. If you
> it to another container, it will retain its last known state."
> So my question is, how to you explicitly destroy a component...? Are
> (secret) destructor methods in Flex that have somehow slipped through my
> fingers this whole time...? Is it something very obvious that I'm somehow
Remove any event listeners on it and set any variables referencing it to
null. Flex will destroy it for you presently.
That is a great post! Very nice work.