well there ya go:
http://objectpainters.com/blog/2007/12/07/why-you-must-call-super/ :)))

It's as2 , but i can imagine it applies to as3 as well, if anyone happens to
know?

greetz
JC:)

On Jan 13, 2008 5:13 AM, Helmut Granda <[EMAIL PROTECTED]> wrote:

> No, I'm not calling super...
>
> On 1/12/08, Steven Sacks <[EMAIL PROTECTED]> wrote:
> >
> > This might seem like a dumb question, but are you calling super() in the
> > constructor of the class that extends MovieClip?  Is the class public?
> >
> > Steven Sacks
> > Flash Maestro
> > Los Angeles, CA
> > --
> > blog: http://www.stevensacks.net
> > gaia: http://www.gaiaflashframework.com
> >
> > Helmut Granda wrote:
> > > Thanks bob for the suggestion.... I guess I still having a little bit
> of
> > > issue tyeing both of the classes together... For example I have
> this...
> > >
> > > ClassA = DocumentClass
> > > ClassB = CustomXMLLoaderClass extends EventDispatcher
> > > ClassC = CustomIMGLoaderClass  extends MovieClip
> > >
> > >
> > > ClassA.addDispatcher(ClassB) which then fires when the XML items I
> need
> > are
> > > completed,
> > >
> > > Following your suggestion then I did a simple "addEventListener" on
> the
> > > document class....
> > > ClassA.addEventListener(ClassC) but for some reason ClassB never hears
> > Class
> > > C when images are done loading
> > >
> > > I can of course extend ClassC from the EventDispatcher and I will get
> > the
> > > same results as I am doing with ClassB but then I am not able to add
> the
> > > newly loaded Images to the stage with  "addChild" since the compiler
> > whines
> > > that its not a DisplayObject which makes sense since it is inherited
> > from
> > > the EventDispatcher....
> > >
> > > Thanks again....
> > > Helmut
> > >
> > > On 1/12/08, Bob Leisle <[EMAIL PROTECTED]> wrote:
> > >> Hi Helmut,
> > >>
> > >> The MovieClip inheritance chain looks like this:
> > >> MovieClip -> Sprite <../../flash/display/Sprite.html> ->
> > >> DisplayObjectContainer
> > <../../flash/display/DisplayObjectContainer.html>
> > >> -> InteractiveObject <../../flash/display/InteractiveObject.html> ->
> > >> DisplayObject <../../flash/display/DisplayObject.html> ->
> > >> EventDispatcher <../../flash/events/EventDispatcher.html> -> Object.
> > >> <../../Object.html>
> > >> Any class you write that extends MovieClip also inherits the ability
> to
> > >> dispatch events.
> > >>
> > >> hth,
> > >> Bob
> > >>
> > >> Helmut Granda wrote:
> > >>> Hi All,
> > >>>
> > >>> While creating a custom class I am trying to figure out a way to add
> > the
> > >>> preloaded images at the same time as to dispatch an event to a
> > different
> > >>> class when the images have loaded.
> > >>>
> > >>> of course I know that I cant extend a class to an EventDispatcher
> and
> > to
> > >> a
> > >>> MovieClip at the same time so I have to choose one, If I extend to
> an
> > >>> EventDispatcher then I cant add the clip when the images are
> > preloaded.
> > >> If I
> > >>> extend to a MovieClip then I cant Dispatch custom events to other
> > >>> listeners.. I was thinking of creating an Interface for the Event
> > >> Dispatcher
> > >>> and then for the MovieClip once that is done then I could implement
> > both
> > >>> interfaces but I dont think this is the right approach....
> > >>>
> > >>> Any suggestions are welcome,
> > >>> Helmut
> > >>> _______________________________________________
> > >>> Flashcoders mailing list
> > >>> Flashcoders@chattyfig.figleaf.com
> > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>>
> > >>>
> > >>>
> > >>>
> > >> --
> > >> Thanks,
> > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >> Bob Leisle
> > >> Headsprout Software & Engineering
> > >> http://www.headsprout.com
> > >> Where kids learn to read!
> > >>
> > >> _______________________________________________
> > >> Flashcoders mailing list
> > >> Flashcoders@chattyfig.figleaf.com
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >
> > >
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> ...helmut
>  _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to