File version: 6

File is zlib compressed. Ratio: 19%

File size: 31415 (Depacked)

Frame rate: 20.000000

Frame count: 1

Movie width: 400.95 (left offset: -0.45)

Movie height: 400.95 (top offset: -0.45)


Back to examples

#
# 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