Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

flash contextMenu is not working in Fullscreen mode

  • 1 respuesta
  • 1 tiene este problema
  • 1 visita
  • Última respuesta de philipp

more options

In as3, if I set stage.scaleMode = StageScaleMode.SHOW_ALL right before fullscreen, and stage.scaleMode = StageScaleMode.NO_SCALE on exit fullscreen, the contextMenu is not woking in fullscreen mode. This issue never happens on IE. Steps: 1. run the following app 2. click the fullscreen button 3. press ESC to exit fullscreen 4. click the fullscreen button again. 5. right click your mouse expect result: contextMenu shows and is selective(working good) actual result: contextMenu shows but is not working


as3 code: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script>

try { stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen); stage.displayState = StageDisplayState.FULL_SCREEN; } catch(e:SecurityError) { stage.scaleMode = StageScaleMode.NO_SCALE; } }

private function handleFullScreen(event:FullScreenEvent):void { if(event.fullScreen) { } else { stage.removeEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen); stage.scaleMode = StageScaleMode.NO_SCALE; } } ]]> </mx:Script> <mx:Button label="FullScreen" click="listenFullScreenClick(event)" /> </mx:Application>

In as3, if I set stage.scaleMode = StageScaleMode.SHOW_ALL right before fullscreen, and stage.scaleMode = StageScaleMode.NO_SCALE on exit fullscreen, the contextMenu is not woking in fullscreen mode. This issue never happens on IE. Steps: 1. run the following app 2. click the fullscreen button 3. press ESC to exit fullscreen 4. click the fullscreen button again. 5. right click your mouse expect result: contextMenu shows and is selective(working good) actual result: contextMenu shows but is not working as3 code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ public function listenFullScreenClick(event:MouseEvent):void { stage.scaleMode = StageScaleMode.SHOW_ALL; try { stage.addEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen); stage.displayState = StageDisplayState.FULL_SCREEN; } catch(e:SecurityError) { stage.scaleMode = StageScaleMode.NO_SCALE; } } private function handleFullScreen(event:FullScreenEvent):void { if(event.fullScreen) { } else { stage.removeEventListener(FullScreenEvent.FULL_SCREEN, handleFullScreen); stage.scaleMode = StageScaleMode.NO_SCALE; } } ]]> </mx:Script> <mx:Button label="FullScreen" click="listenFullScreenClick(event)" /> </mx:Application>

Todas las respuestas (1)

more options

hello niunaiwehua, you will probably get more helpful answers, when you post your question in a forum specialised on flash development like http://forums.adobe.com/community/flash. thank you