setChildIndex() is what I was thinking of. It's either on IUIComponent or
IContainer.

On Wed, Jan 7, 2009 at 8:27 PM, Manish Jethani <manish.jeth...@gmail.com>wrote:

> On Wed, Jan 7, 2009 at 4:48 AM, markgoldin_2000
> <markgoldin_2...@yahoo.com> wrote:
> > Ok, here what I am getting.
> > I have a container that I am adding different forms to at the run
> > time. These forms are all based on the same class though.
> > So, before I add a new form I am removing current form using:
> > container.removeAllChildren();
> > each form when created is adding a custom event listener to a parent -
> > the container. When a custom event is triggered every form that was
> > created (regardless that it was removed after) gets this custom event
> > to handle.
>
> When you listen for an event on one of your ancestors, you usually
> want to use a weak reference (the last parameter to addEventListener).
> That's because your parent doesn't know you're listening on it, so
> when you've been removed and "discarded", you'll still be around
> because of the event listener.
>
> Manish
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk

Reply via email to