gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9777: further improved matrix_test


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9777: further improved matrix_test to use _rotation too
Date: Thu, 18 Sep 2008 11:24:30 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9777
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Thu 2008-09-18 11:24:30 +0200
message:
  further improved matrix_test to use _rotation too
modified:
  testsuite/misc-ming.all/matrix_test.c
    ------------------------------------------------------------
    revno: 9775.1.1
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-18 10:31:05 +0200
    message:
      more tests for _xscale and _yscale after setting each other
    modified:
      testsuite/misc-ming.all/matrix_test.c
    ------------------------------------------------------------
    revno: 9775.1.2
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-18 11:11:16 +0200
    message:
      Add _rotation into the matrix_test loop (more failures)
    modified:
      testsuite/misc-ming.all/matrix_test.c
    ------------------------------------------------------------
    revno: 9775.1.3
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-18 11:20:19 +0200
    message:
      round floats so pp on win also succeeds
    modified:
      testsuite/misc-ming.all/matrix_test.c
=== modified file 'testsuite/misc-ming.all/matrix_test.c'
--- a/testsuite/misc-ming.all/matrix_test.c     2008-09-17 17:33:10 +0000
+++ b/testsuite/misc-ming.all/matrix_test.c     2008-09-18 09:20:19 +0000
@@ -441,7 +441,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -467,7 +467,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -493,7 +493,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -519,7 +519,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -545,7 +545,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -571,7 +571,7 @@
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'19.95,-1082.3 80.05,1682.3'");
        check_equals(mo, "staticmc._width", "60.1");
-       check_equals(mo, "staticmc._height", "2764.6");
+       check_equals(mo, "Math.round(staticmc._height*10)", "27646");
 
        // X:    19.95   80.05
        // Y: -1082.3  1682.3
@@ -597,7 +597,7 @@
        check_equals(mo, "staticmc._rotation", "180");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -624,7 +624,7 @@
        check_equals(mo, "staticmc._rotation", "180");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -651,7 +651,7 @@
        check_equals(mo, "staticmc._rotation", "0");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -678,7 +678,7 @@
        check_equals(mo, "staticmc._rotation", "0");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -705,7 +705,7 @@
        check_equals(mo, "staticmc._rotation", "180");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -732,7 +732,7 @@
        check_equals(mo, "staticmc._rotation", "180");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1332.3,269.95 1432.3,330.05'");
-       check_equals(mo, "staticmc._width", "2764.6");
+       check_equals(mo, "Math.round(staticmc._width*10)", "27646");
        check_equals(mo, "staticmc._height", "60.1");
 
        // X: -1332.3  1432.3 
@@ -758,7 +758,7 @@
        check_equals(mo, "staticmc._rotation", "180");  
        check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-1362.35,285 1462.35,315.05'");
-       check_equals(mo, "staticmc._width", "2824.7");
+       check_equals(mo, "Math.round(staticmc._width*10)", "28247");
        check_equals(mo, "staticmc._height", "30.05");
 
        // X: -1362.35  1462.35
@@ -785,229 +785,696 @@
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 0, 2, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "0");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 0, -2, 1, 200, 200); 
-    check_equals(mo, "staticmc._xscale", "100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
-    check_equals(mo, "staticmc._xscale", "-100"); // xscale changed, 
boundaries don't (not much at least)
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "0");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 0, -2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "0");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 0, 2, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "180");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 0, -2, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "180");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 0, -2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,169.95 290.15,230.05'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "staticmc._xscale", "100");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "staticmc._xscale", "-100");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170 
290,230'");
+
+       check_equals(mo, "staticmc._rotation", "180");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "180");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'110,170 290,230'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'111,167 289,233'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "staticmc._xscale", "-100");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'109,171 291,229'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 2, 0, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, -2, 0, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, -2, 0, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 2, 0, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, 0, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, 0, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'169.95,109.85 230.05,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "staticmc._yscale", "100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110 
230,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "staticmc._yscale", "100");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'170,110 230,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'107,183 294,217'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "staticmc._yscale", "-100");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", 
"'106,185 294,215'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, 2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, -2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'78,159 
322,241'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156 
319,244'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 2, -2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, 2, -2, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156 
319,244'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'78,159 
322,241'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 2, -2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "63");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'78,159 
322,241'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156 
319,244'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, 2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131 
270,270'");
+
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, -1, -2, 2, 1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-117");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'78,159 
322,241'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156 
319,244'");
+
        SWFMovie_nextFrame(mo);
 
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, -2, 2, -1, 200, 200); 
        check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'109.85,109.85 290.15,290.15'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "224");
        add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap 
_xscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
+
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
+       check_equals(mo, "Math.round(staticmc._yscale)", "224");
        add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap 
_yscale sign using ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._rotation)", "-63");
        check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110 
290,290'");
 
+       add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156 
319,244'");
+
+       add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using 
ActionScript
+       check_equals(mo, "Math.round(staticmc._yscale)", "-224");
+       check_equals(mo, "Math.round(staticmc._xscale)", "-224");
+       check_equals(mo, "staticmc._rotation", "-2");
+       xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'78,159 
322,241'");
+
        // TODO:
        // - test more rotations and scales (corner cases too!)
        // - test 'skew' (since Ming supports it)
 
        SWFMovie_nextFrame(mo);
 
-       add_actions(mo, "_root.totals(487); stop();");
+       add_actions(mo, "_root.totals(825); stop();");
        SWFMovie_nextFrame(mo);        
 
        //Output movie


reply via email to

[Prev in Thread] Current Thread [Next in Thread]