, 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
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
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 (
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
> >
> >
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
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
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
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(
8 matches
Mail list logo