Search Support

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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

flash contextMenu is not working in Fullscreen mode

  • 1 antwoord
  • 1 het hierdie probleem
  • 1 view
  • Laaste antwoord deur 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>

All Replies (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