3d cube facec problem when load swf

Hi,

I m making 3d cube in flash.

It has 6 faces and when we mouse over it start to rotate but when I clicked the number one face of 3d cube and load swf file some faces of cube doesn’t appear.

I dont know why this happen, could you please tell me why it happens.

thanks

this is 3d cube face code

// top face
p0 = {x:-50, y:-50, z:-50};
p1 = {x:50, y:-50, z:-50};
p2 = {x:50, y:-50, z:50};
p3 = {x:-50, y:-50, z:50};
// botton face
p4 = {x:-50, y:50, z:-50};
p5 = {x:50, y:50, z:-50};
p6 = {x:50, y:50, z:50};
p7 = {x:-50, y:50, z:50};
pointArray = [p0, p1, p2, p3, p4, p5, p6, p7];
// p0 to p8 , the 3d points of a cube;
clipArray = new Array();
for (k=0; k<6; k++) {
duplicateMovieClip(obj, “obj”+k, k+1);
var clip = _root[“obj”+k];
clip.mc.holder.attachMovie(“mv”+k, “mov”, 1);
clipArray[k] = clip;
}
clipArray[0].reg = {pt0 0, pW 3, pH 1};
// top
clipArray[1].reg = {pt0 4, pW 7, pH 5};
// bot
clipArray[2].reg = {pt0 0, pW 1, pH 4};
// face 1
clipArray[3].reg = {pt0 1, pW 2, pH 5};
// face 2
clipArray[4].reg = {pt0 2, pW 3, pH 6};
// face 3
clipArray[5].reg = {pt0 3, pW 0, pH 7};
// face 4
x0 = 200;
y0 = 100;

function shiftPoint(point) {
var newPoint = new Object();
newPoint.x = point.x+x0;
newPoint.y = point.y+y0;
return newPoint;
}
function getCenterZ(clip) {
var centerZ = (clip.reg.pH.z+clip.reg.pW.z)/2;
return centerZ;
}
function updateClip() {
for (k=0; k<6; k++) {
// skew
var clip = clipArray[k];
var reg = clip.reg;
var z1 = getCenterZ(clip);
if (z1<=0) {
clip._visible = true;
skewObj(clip, 100, 100, shiftPoint(reg.pt0), shiftPoint(reg.pH), shiftPoint(reg.pW));
} else {
clip._visible = false;
}
}
}
function getCenterZ(clip) {
var centerZ = (clip.reg.pH.z+clip.reg.pW.z)/2;
return centerZ;
}
groupRotateY(pointArray, 20);
groupRotateZ(pointArray, 20);
groupRotateX(pointArray, 20);
updateClip();