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!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

flash contextMenu is not working in Fullscreen mode

  • 1 réponse
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par 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>

Toutes les réponses (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