         return p;
     }
 
-    protected var _maxSize :int;
-    protected var _borderSize :int;
+    protected var _maxAtlasSize :int;
+    protected var _textureBorderSize :int;
 
     protected const _unpacked :Vector.<SwfTexture> = new Vector.<SwfTexture>();
 

    public const atlases :Vector.<Atlas> = new Vector.<Atlas>();

    public function PackerImpl (lib :XflLibrary, baseScale :Number, scaleFactor :int,
        borderSize :int, maxSize :int /*= 2048*/, prefix :String /*= ""*/) {

        _maxSize = maxSize;
        _borderSize = borderSize;

        var scale :Number = baseScale * scaleFactor;


            // Add a new atlas
            const size :Point = findOptimalSize();
            atlases.push(new AtlasImpl(
                filenamePrefix + "atlas" + atlases.length,
                size.x, size.y,
                textureBorderSize,
                scaleFactor));
            var hasEmptyAtlas :Boolean = true;

