[flexcoders] Re: Scaling Custom Components

2007-03-28 Thread g_odds
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;

[flexcoders] Re: Scaling Custom Components

2007-03-28 Thread Nate Pearson
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

[flexcoders] Re: Scaling Custom Components

2007-03-28 Thread Nate Pearson
? 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

RE: [flexcoders] Re: Scaling Custom Components

2007-03-28 Thread Alex Harui
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

RE: [flexcoders] Re: Scaling Custom Components

2007-03-28 Thread Alex Harui
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