     canvas = @$el.find('#canvas')
     @stage = new createjs.Stage(canvas[0])
     @layerAdapter = new LayerAdapter({name:'Default', webGL: true})
+    @listenTo @layerAdapter, 'new-spritesheet', @onNewSpriteSheet
     @stage.addChild(@layerAdapter.container)
     @camera?.destroy()
     @camera = new Camera canvas

  # animation select

  refreshAnimation: =>
    return @showRasterImage() if @thangType.get('raster')
    options = @getLankOptions()
    console.log 'refresh animation....'
#    @thangType.resetSpriteSheetCache()
#    spriteSheet = @thangType.buildSpriteSheet(options)
#    $('#spritesheets').empty()
#    return unless spriteSheet
#    for image in spriteSheet._images
#      $('#spritesheets').append(image)
    @showAnimation()
    @updatePortrait()


    @scale = scaleValue
    @$el.find('.scale-label').text " #{fixed}x "
    if @currentLank
      @currentLank.sprite.scaleX = @currentLank.sprite.baseScaleX * scaleValue
      @currentLank.sprite.scaleY = @currentLank.sprite.baseScaleY * scaleValue
    else if @currentObject?
      @currentObject.scaleX = @currentObject.scaleY = scaleValue / resValue
    @updateGrid()
