     @currentLank?.destroy()
     @currentLank = sprite
     @showSprite(sprite.sprite)
+    @updateScale()
+    
+  onNewSpriteSheet: ->
+    $('#spritesheets').empty()
+    for image in @layerAdapter.spriteSheet._images
+      $('#spritesheets').append(image)
     @updateScale()
 
   showAnimation: (animationName) ->

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

  # animation select

  refreshAnimation: =>
    @thangType.buildActions()
    return @showRasterImage() if @thangType.get('raster')
    options = @getLankOptions()
    console.log 'refresh animation....'
    @showAnimation()
    @updatePortrait()

