we don't actually need a mask any more now that we have a ScrollRect
authorRichard Fairhurst <richard@systemed.net>
Sun, 16 Jan 2011 18:58:06 +0000 (18:58 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sun, 16 Jan 2011 18:58:06 +0000 (18:58 +0000)
potlatch2.mxml

index dafe12a891e3268b65d715e690968548fb60341c..44ab22ca4780ea23aad5ee7955011c79a0cf9b1d 100644 (file)
             theMap.updateSize(w,h);
                        theMap.addEventListener(MapEvent.SCALE, scaleHandler);
 
-                       // add mask for map
-                       var s:Sprite=new Sprite();
-                       s.graphics.beginFill(0xFFFFFF,100);
-                       s.graphics.drawRect(0,0,w,h);
-                       s.graphics.endFill();
-                       _root.addChild(s);
-                       theMap.mask=s;
-
                        // add attribution/logo sprite
                        var overlay:Sprite=new Sprite();
                        var attribution:TextField=new TextField();