I'm having this (weird) problem:

(Not sure if it's Flash Player (8/Mac) related, or compiletime related (mtasc))

I have for example this code:
class A
{
        public function A()
        {
        
        }
        
        public function doSomething():Void
        {
                // all sort of code
        }
}


class B extends A
{
        public function B()
        {
                super();
        }
        
        public function doSomething():Void
        {
                super.doSomething();
                
                // more code
        }
}


class C extends B
{
        public function C()
        {
                super();
        }
}

And I for example do this:

var c:C = new C();
c.doSomething();

the doSomething() gets called 3 times!
First time the B version, which calls the A function (2nd one).
Next, the A function is called again... which should not be so!!! :(

When I do this:
class C extends B
{
        public function C()
        {
                super();
        }
        
        // useless wrapper
        public function doSomething():Void
        {
                super.doSomething();
        }
}

The doSomething() is also called 3 times, but first the C, which calls
the B, which calls the A function. As it should...

Now I hate to have to include every override function in all the
classes, so is there a solution to this?? (or does anyone know what is
going on / wrong?)

thanks in advance!
Joeri
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to