                 else 
                 {
                     sv = s['@' + st].toString();
-                    tv = s['@' + tt].toString();
+                    tv = t['@' + tt].toString();
                     if (sv != tv)
                     {
                         if (xywidthheight[st] == 1)

                            tv = tv.substring(1, tv.length - 2);
                            sparts = sv.split(",");
                            tparts = tv.split(",");
                            n = sparts.length;
                            for (i = 0; i < n; i++)
                            {
                                sv = sparts[i];
                                tv = tparts[i];
                                sv = sv.split("=")[1];
                                tv = tv.split("=")[1];
                                sf = Number(sv);

        var retval:Boolean = false;
        var q:String;
        var i:int;
        var j:int;
        var n:int;
        var m:int;
        var st:String;
        var tt:String;
        var sv:String;
        var tv:String;
        
        if (s.toXMLString() == t.toXMLString())
            return false;
        
        // compare tag names
        var sn:String = s.name().toString();
