 import starling.textures.Texture;
 
 import com.threerings.util.Map;
-import com.threerings.util.Maps;
+import com.threerings.util.maps.ValueComputingMap;
 
 public class DisplayCreator
 {

        }
        const xflMovie :MovieMold = _lib.getLibrary(name, MovieMold);
        var maxDrawn :int = 0;
        var calculatedKeyframes :Map = Maps.newMapOf(KeyframeMold);
        for (var ii :int = 0; ii < xflMovie.frames; ii++) {
            var drawn :int = 0;
            for each (var layer :LayerMold in xflMovie.layers) {
                var kf :KeyframeMold = layer.keyframeForFrame(ii);
                if (kf.visible) {
                    if (!calculatedKeyframes.containsKey(kf)) {
                        calculatedKeyframes.put(kf, getMaxDrawn(kf.id));
                    }
                    drawn += calculatedKeyframes.get(kf);
                }
            }
            maxDrawn = Math.max(maxDrawn, drawn);
        }

        else return loadMovie(MovieMold(libraryItem).libraryItem);
    }

    protected var _maxDrawn :Map = ValueComputingMap.newMapOf(String, calcMaxDrawn);
    protected const _textures :Dictionary = new Dictionary();// library name to Texture
    protected const _textureOffsets :Dictionary = new Dictionary();// library name to Point
    protected var _lib :XflLibrary;
