treat glyphs with alpha=0 differently than normal glyphs (remove outlines)
[swftools.git] / lib / as3 / ok / xml.as
index 6cda8fe..a7e6428 100644 (file)
@@ -2,7 +2,7 @@ package {
     import flash.display.MovieClip
     public class Main extends flash.display.MovieClip {
         var count:int = 1;
-        var num:int = 29;
+        var num:int = 31;
         function assert(b:Boolean) {
             if(b) {
                 trace("ok "+count+"/"+num);
@@ -117,6 +117,10 @@ package {
             assert(x10 != x11);
             x11.b.@a = "x";
             assert(x10 == x11);
+            x11.b.@["a"] = "y";
+            assert(x10 != x11);
+            x11.b.@["a"] = "x";
+            assert(x10 == x11);
 
             var x12:XML = <x><a/></x>;
             x12.a += <b/>;
@@ -153,8 +157,8 @@ package {
             /* ----- substitution ----- */
 
             trace("[substitution]");
-
-            var x2:XML = <{"tree"} {"na"+"me"}="test" {"t=x"}>
+            x1.@t = "x";
+            var x2:XML = <{"tree"} {"na"+"me"}="test" {"t=\"x\""}>
                              <{{three: "branch"}["three"]} bname={"t1"}>{"Branch" + " " + 1}</{"branch"}>
                             <branch bname="t2">Branch 2</branch>
                         </tree>