diff --git a/core/src/avm2/globals/flash/display/Stage.as b/core/src/avm2/globals/flash/display/Stage.as index a5daacb77242..9c579550aa49 100644 --- a/core/src/avm2/globals/flash/display/Stage.as +++ b/core/src/avm2/globals/flash/display/Stage.as @@ -15,6 +15,7 @@ package flash.display { [Ruffle(NativeInstanceInit)] public class Stage extends DisplayObjectContainer { private var _colorCorrection:String = ColorCorrection.DEFAULT; + private var _mouseLock:Boolean = false; public function Stage() { throw new Error("You cannot construct new instances of the Stage.") @@ -267,5 +268,15 @@ package flash.display { stub_getter("flash.display.Stage", "colorCorrectionSupport"); return ColorCorrectionSupport.UNSUPPORTED; } + + public function get mouseLock():Boolean { + stub_getter("flash.display.Stage", "mouseLock"); + return this._mouseLock; + } + + public function set mouseLock(value:Boolean):void { + stub_setter("flash.display.Stage", "mouseLock"); + this._mouseLock = value; + } } }