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.comwrote:
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
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:
--- In flexcoders@yahoogroups.com, markgoldin_2000
markgoldin_2...@... wrote:
How do I remove children from a container in order to completely
destroy them? Will removeAllChildren do the job?
Thanks
removeChild(obj) will remove the obj child from the container. you can
assign obj to
- Original Message -
From: roopal_oswal roopal_os...@yahoo.co.in
To: flexcoders@yahoogroups.com
Sent: Wednesday, January 07, 2009 12:09 PM
Subject: [flexcoders] Re: Properly remove children
--- In flexcoders@yahoogroups.com, markgoldin_2000
markgoldin_2...@... wrote:
How do I remove
It is set to true. Did not help.
--- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote:
I think you need to use weak references when adding event listeners.
Set the last parameter of addEventListener to true when adding event
listeners.
Alternately, you can remove event listeners
- Original Message -
From: markgoldin_2000 markgoldin_2...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, January 07, 2009 2:04 PM
Subject: [flexcoders] Re: Properly remove children
It is set to true. Did not help.
Could there be something else pointing to the child/form
I have some doubt about weak references at eventListener.
When I add a eventListener with weak reference true, the object don't
get a point/reference to it but what happens with eventListener array after
removing this object. This array don't has the reference for garbage collect,
so the garbage
On Wed, Jan 7, 2009 at 8:05 PM, Marco Catunda marco.catu...@gmail.com wrote:
I have some doubt about weak references at eventListener.
When I add a eventListener with weak reference true, the object don't
get a point/reference to it but what happens with eventListener array after
removing
Hi,
Just wanted to mention something I (in the comments) of one of Ted Patrick's
blog posts.
He says that there's a known bug in Flash Player 9 where weak references were
preventing
objects from being garbage collected:
http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php
That is however a corner case, and although I've deleted my experiment, it's
pretty easy to show that weak event listeners do get collected most of the
time.
On Thu, Jan 8, 2009 at 6:53 AM, sunild99 sunilbd...@gmail.com wrote:
Hi,
Just wanted to mention something I (in the comments) of
I dont really have a name (myButton). Objects are added to a
container at run-time.
--- In flexcoders@yahoogroups.com, Manish Jethani
manish.jeth...@... wrote:
On Wed, Jan 7, 2009 at 12:22 AM, markgoldin_2000
markgoldin_2...@... wrote:
How do I remove children from a container in order to
On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000
markgoldin_2...@yahoo.com wrote:
I dont really have a name (myButton). Objects are added to a
container at run-time.
while (container.numChildren 1)
container.removeChildAt(0);
Or you can use removeAllChildren
Manish
removeAllChildren
Yes, that's what I use but I dont see objects being completely
destroyed.
--- In flexcoders@yahoogroups.com, Manish Jethani
manish.jeth...@... wrote:
On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000
markgoldin_2...@... wrote:
I dont really have a name (myButton). Objects
On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
markgoldin_2...@yahoo.com wrote:
removeAllChildren
Yes, that's what I use but I dont see objects being completely
destroyed.
Define destroyed.
Surely you see them go away?
Manish
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
I think you need to use weak references when adding event listeners.
Set the last parameter of addEventListener to true when adding event
listeners.
Alternately, you can remove event listeners when the forms are removed
using the removeEventListener function.
The flex profiler is useful here too
. Objects can
exist when not on the display list or a child of a container.
Paul.
- Original Message -
From: Sam Lai samuel@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 06, 2009 11:51 PM
Subject: Re: [flexcoders] Re: Properly remove children
I think you need to use weak
You should clean up your event listeners when you remove the children.
As long as a reference exists on those children they will never be
garbage-collected.
Is there an easy, standard way to do this? I've tried using the
removedFromStage event, but that event gets fired when an AIR/Flex app
18 matches
Mail list logo