Confusing classes blocking eachother

Hi again.

Ok, I don’t know what’s causing it, but one of my classes is blocking another somehow. Here’s a nutshell version of my code:

package classes {
    import flash.display.Sprite;
    import classes.Class1;
    import classes.Class2;
    public class Test extends Sprite {
        private var container:Sprite = new Sprite();
        private var sprite1:Class1 = new Class1();
        private var sprite2:Class2 = new Class2();
        public function Test() {

Now, Class1 and Class2 have the same superclass which they inherit some stuff from, and they both look very much alike, using the same variable and function names.

When I run the script, both classes are loaded, and container.numChildren is 2, as expected, but only sprite1 is visible on the stage!

If I remove either one of the classes, the remaining one works, and is visible on the stage, but they don’t work together. The last one to be included doesn’t even execute it’s initial functions.

What may be the solution to this?

/ Frank