If you just want to remove all the children, do something like this:
while (this.numChildren() 0)
this.removeChildAt(0);
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
Nope, it is essentially an array. If I have
var a:Array = [ Nate, Alex];
a[2] = Bjorn;
Thanks everyone for your response. Now that I understand how children
are added/removed i can take out some of my work arounds in other
projects!
The scaling works great now.
New question:
Is this the best way to scale? Is it expensive to remove and re-add
all the components when I want to
? You should just set the scaleX,scaleY and reposition.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Wednesday, March 28, 2007 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Scaling Custom
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Scaling Custom Components
Thanks everyone for your response. Now that I understand how children
are added/removed i can take out some of my work arounds in other
projects!
The scaling works great now.
New question:
Is this the best
Pearson
Sent: Wednesday, March 28, 2007 9:57 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Scaling Custom Components
Thanks everyone for your response. Now that I understand how children
are added/removed i can take out some of my work
5 matches
Mail list logo