             // Swap in the proper DisplayObject for this keyframe.
             const disp :DisplayObject = _displays[_keyframeIdx];
             if (_currentDisplay != disp) {
+                _currentDisplay.name = null;
                 _currentDisplay.visible = false;
                 // If we're swapping in a Movie, reset its timeline.
                 if (disp is Movie) {
                     Movie(disp).addedToLayer();
                 }
                 _currentDisplay = disp;
+                _currentDisplay.name = _name;
             }
         }
         _needsKeyframeUpdate = false;

        } else if (frame >= _numFrames) {
            // We've overshot our final frame. Show an empty sprite.
            if (_currentDisplay != _frameOvershootDisplay) {
                _currentDisplay.visible = false;
                _currentDisplay = _frameOvershootDisplay;
            }
            // keep our keyframeIdx updated
            _keyframeIdx = _keyframes.length - 1;

        if (!flipbook && lastItem == null) {
            // The layer is empty.
            _currentDisplay = new Sprite();
            _currentDisplay.name = null;
            _movie.addChild(_currentDisplay);
        } else {
            // Create the display objects for each keyframe.
