public ApplicationSprite() { var c = new ActionScript.Images.MyCursor(); //Error: Error #2071: The Stage class does not implement this property or method. // at Error$/throwError() // at flash.display::Stage/set contextMenu() // at FlashSVGCursorExperiment::ApplicationSprite()[V:\web\FlashSVGCursorExperiment\ApplicationSprite.as:36] //this.stage.contextMenu = new ContextMenu(); this.stage.showDefaultContextMenu = false; // http://stackoverflow.com/questions/16896432/mouseevent-right-mouse-down-rightmousedown-doesnt-work-in-flex4-6-web-runs this.stage.rightMouseDown += e => { c.alpha = 0.3; }; this.stage.rightMouseUp += e => { c.alpha = 0.9; }; //public static function remove_rightClick_4ebbe596_06001096(that:InteractiveObject, value:__Action_1):void //{ // CommonExtensions.RemoveDelegate_4ebbe596_060021d9((EventDispatcher(that)), value, MouseEvent.CLICK); //} // we are getting wrong bindings? // because of older playerglobal? // http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#RIGHT_CLICK // X:\jsc.svn\examples\actionscript\svg\FlashSVGCursorExperiment\FlashSVGCursorExperiment\ApplicationSprite.cs CommonExtensions.CombineDelegate( this.stage, new System.Action <MouseEvent>( e => { e.preventDefault(); } ) , "rightClick" ); this.stage.rightClick += e => { c.alpha = 1.0; }; // http://stackoverflow.com/questions/377033/remove-the-right-click-menu-in-flash-9 c.AttachTo(this); new ActionScript.Images.MyCursor().ToMouseCursor(); }
public ApplicationSprite() { var c = new ActionScript.Images.MyCursor(); //Error: Error #2071: The Stage class does not implement this property or method. // at Error$/throwError() // at flash.display::Stage/set contextMenu() // at FlashSVGCursorExperiment::ApplicationSprite()[V:\web\FlashSVGCursorExperiment\ApplicationSprite.as:36] //this.stage.contextMenu = new ContextMenu(); this.stage.showDefaultContextMenu = false; // http://stackoverflow.com/questions/16896432/mouseevent-right-mouse-down-rightmousedown-doesnt-work-in-flex4-6-web-runs this.stage.rightMouseDown += e => { c.alpha = 0.3; }; this.stage.rightMouseUp += e => { c.alpha = 0.9; }; //public static function remove_rightClick_4ebbe596_06001096(that:InteractiveObject, value:__Action_1):void //{ // CommonExtensions.RemoveDelegate_4ebbe596_060021d9((EventDispatcher(that)), value, MouseEvent.CLICK); //} // we are getting wrong bindings? // because of older playerglobal? // http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#RIGHT_CLICK // X:\jsc.svn\examples\actionscript\svg\FlashSVGCursorExperiment\FlashSVGCursorExperiment\ApplicationSprite.cs CommonExtensions.CombineDelegate( this.stage, new System.Action<MouseEvent>( e => { e.preventDefault(); } ) , "rightClick" ); this.stage.rightClick += e => { c.alpha = 1.0; }; // http://stackoverflow.com/questions/377033/remove-the-right-click-menu-in-flash-9 c.AttachTo(this); new ActionScript.Images.MyCursor().ToMouseCursor(); }