       private var __isinternalresource:* = null;
 
       // flag to track sprite the mouse went over while down to send mouseup event later -  see LPP-7300 and LPP-7335
-      private var __mouseoverInFront:* = null;
+      private var __mouseoverInFront:LzSprite = null;
 
       public static var capabilities:* = {
       rotation: true

                this.__mousedown = true;
                LzMouseKernel.__lastMouseDown = this;
            } else if (eventname == 'onmouseup') {
                if (LzMouseKernel.__lastMouseDown == this) {
                    // cancel mousedown event bubbling...
                    LzMouseKernel.__lastMouseDown = null;
                    e.stopPropagation();
                    this.__mousedown = false;
                } else {
                    skipevent = true;
                }
                if (this.__mouseoverInFront != null) {
                    LzMouseKernel.__sendEvent(this.__mouseoverInFront.owner, 'onmouseover');
                    this.__mouseoverInFront = null;
                }
            } else if (eventname == 'onmouseupoutside') {
                this.__mousedown = false;

            if (LzMouseKernel.__lastMouseDown &&
                (eventname == 'onmouseover' || eventname == 'onmouseout')) {
                    // only send mouseover/out if the mouse went down on this sprite - see LPP-6677
                    if (LzMouseKernel.__lastMouseDown === this) {
                        LzMouseKernel.__sendEvent(this.owner, eventname);
                    } else {
                        // check to see if this sprite is in front of the sprite the mouse went down on.  See LPP-7300
                        var relObj:InteractiveObject = e.relatedObject;
                        // relatedObject is the sprite's clickbutton, use parent to access the LzSprite
                        if (relObj && relObj.parent === LzMouseKernel.__lastMouseDown) {
                            // store reference to self for sending onmouseover event later - see LPP-7335
                            LzMouseKernel.__lastMouseDown.__mouseoverInFront = this;
                        } else {
                            LzMouseKernel.__lastMouseDown.__mouseoverInFront = null;
                        }
                    }
