Class instance property disappears

Hi, I’m having a problem with some disappearing instance properties… That is, when another instance is created, previous is lost somewhere (:

Actually after intensive debugging, all I can say is that instance is there, but the movie clip attached to one of it’s properties is gone. Well, not gone In debugger window everythig is still there, but on screen last movieclip disappears when next one is created /I’ve marked that spot in code as ‘PROBLEM LOCATION’/ tracing values gives me no clue about what’s going on - everithig looks as it shoud. All the values are correct, structure is good, yet my MovieClips ain’t showing, except the last one…

If someone could find what’s wrong with this, I’d be greatfull…
Sasxa

Here’s the code. I reduced it as much as I could, 'though I left something more then it’s needed to isolate problem - maybe someone gets inspiration ((:


 [color=#878787]// Class definition...
[/color]dynamic class Engine {
        static [color=#000087]var[/color] mcHolder:[color=#000087]MovieClip[/color];
        [color=#878787]// constructor function
[/color]        [color=#000087]function[/color] Engine(nDepth:[color=#000087]Number[/color], nStageDepth:[color=#000087]Number[/color]) {
                Engine.nDepth = nDepth;
                Engine.nFocalLength = 350;
                Engine.mcHolder = [color=#000087]_root[/color].[color=#000087]createEmptyMovieClip[/color]("[color=blue]Stage3D[/color]", Engine.nDepth);
                Engine.mcHolder.[color=#000087]_x[/color] = [color=#000087]Stage[/color].[color=#000087]width[/color] / 2;
                Engine.mcHolder.[color=#000087]_y[/color] = [color=#000087]Stage[/color].[color=#000087]height[/color] / 2;
                [color=#878787]//
[/color]        }
}
[color=#878787]// Class definition...
[/color]dynamic class Object3D extends Engine {
        static [color=#000087]var[/color] nInstances:[color=#000087]Number[/color];
        [color=#000087]var[/color] sType:[color=#000087]String[/color];
        [color=#000087]var[/color] mcContent:[color=#000087]MovieClip[/color];
        [color=#878787]// constructor function
[/color]        [color=#000087]function[/color] Object3D() {
                [color=#878787]// insertation point
[/color]                [color=#000087]this[/color].nX = 0;
                [color=#000087]this[/color].nY = 0;
                [color=#000087]this[/color].nZ = 0;
                Object3D.nInstances++;
                [color=#000087]this[/color].mcContent = mcHolder.[color=#000087]attachMovie[/color]("[color=blue]soemthing[/color]", "[color=blue]soemthing[/color]" + Object3D.nInstances, Object3D.nInstances);
        }
        [color=#000087]function[/color] [color=#000087]setPosition[/color]() {
                [color=#000087]var[/color] nScaleRatio:[color=#000087]Number[/color] = Engine.nFocalLength / (Engine.nFocalLength + [color=#000087]this[/color].nZ);
                [color=#878787]// adjusting screen X and Y values based on object coordinates
[/color]                [color=#000087]this[/color].mcContent.[color=#000087]_x[/color] = ([color=#000087]this[/color].nX - Engine.nCameraX) * nScaleRatio;
                [color=#000087]this[/color].mcContent.[color=#000087]_y[/color] = ([color=#000087]this[/color].nY - Engine.nCameraY) * nScaleRatio;
                [color=#878787]// adjusting scale X and Y values
[/color]                [color=#000087]this[/color].mcContent.[color=#000087]_xscale[/color] = 100 * nScaleRatio;
                [color=#000087]this[/color].mcContent.[color=#000087]_yscale[/color] = 100 * nScaleRatio;
        }
}

[color=#878787]// Stage,,,,
[/color]myStage = [color=#000087]new[/color] Engine(50, 500);
Engine.nCameraX = 0;
Engine.nCameraY = 0;
[color=#878787]//
[/color]Object3D.nInstances = 0;
myObjects = [color=#000087]new[/color] [color=#000087]Array[/color]();
[color=#000087]var[/color] nObjects = 3;
[color=#000087]for[/color] (i = 0; i <  nObjects; i++) {
        [color=#878787]// PROBLEM LOCATION //
[/color]        myObjects* = [color=#000087]new[/color] Object3D();
        [color=#878787]// PROBLEM LOCATION //
[/color]        myObjects*.nX = 20 * i;
        myObjects*.nY = 50 * i;
        myObjects*.nZ = 75 * i;
        myObjects*.[color=#000087]setPosition[/color]();
}