#
# 3D experiment with Swftools http://www.swftools.org/
#
#
.flash filename=3D_test.swf fps=20 bbox=autocrop
.box fond width=400 height=400 color=gray fill=white line=2
#
# Include Draw3D component
#
.include draw3d.sci
.put fond
#
# Include object example
#
.include logo1_obj.sci
#
# Main actionScript
#
.action:
theta = 0;
m.scene.onEnterFrame = function () {
with (_root) {
m.clearTransform();
m.scale(80,50,80);
m.rotateZ (0); //-mx*45
m.rotateY (mx*180*0.0174);
m.rotateX (my*180*0.0174);
m.applyPerspective (500); //500
my = ((m.scene._ymouse-200) / 190);
mx = ((m.scene._xmouse-400) / 190);
m.render ();
};
};
.end
.end