Re: [Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
, 2007 12:40 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Composition access One more question while in Composition mode lets say I have my main class Main -method1 (calls method2) -method2 (calls method3) -method3 With Inheritance I could do Copy -method2 (calls method3 of Main) W

Re: [Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
t; create your logic in your CopyClass' init method. This is the one > > > drawback > > > to using Composition over Inheritance, but I would say it's worth it > > > in the > > > long-run. > > > > > > > > > David > > > &g

RE: [Flashcoders] Composition access

2007-06-08 Thread David Ngo
June 08, 2007 12:40 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Composition access One more question while in Composition mode lets say I have my main class Main -method1 (calls method2) -method2 (calls method3) -method3 With Inheritance I could do Copy -method2 (

Re: [Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
ginal.init() > > and just > > create your logic in your CopyClass' init method. This is the one > > drawback > > to using Composition over Inheritance, but I would say it's worth it > > in the > > long-run. > > > > > > David > > > >

Re: [Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
gt; From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Helmut > Granda > Sent: Friday, June 08, 2007 10:27 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Composition access > > I am slowly moving from inheritance to composition for a specific > pro

Re: [Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
ED] On Behalf Of Helmut Granda Sent: Friday, June 08, 2007 10:27 AM To: Flashcoders mailing list Subject: [Flashcoders] Composition access I am slowly moving from inheritance to composition for a specific project, one way to "extend" my classes is by creating a copy of them into the new

RE: [Flashcoders] Composition access

2007-06-08 Thread David Ngo
lashcoders mailing list Subject: [Flashcoders] Composition access I am slowly moving from inheritance to composition for a specific project, one way to "extend" my classes is by creating a copy of them into the new created classes... class OriginalClass { var mc:MovieClip; f

[Flashcoders] Composition access

2007-06-08 Thread Helmut Granda
I am slowly moving from inheritance to composition for a specific project, one way to "extend" my classes is by creating a copy of them into the new created classes... class OriginalClass { var mc:MovieClip; function original(mc:MovieClip) { this.mc = mc; init(); }; function init() { trace(