Ovo će web mjesto raditi na ograničen način, dok obavljamo održavanje stranice. Ako neki članak ne riješi tvoj problem i ako želiš postaviti pitanje, naša zajednica za podršku spremna je pomoći na Twitteru @FirefoxSupport i na Redditu /r/firefox.

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

flash contextMenu is not working in Fullscreen mode

  • 1 odgovor
  • 1 ima ovaj problem
  • 1 prikaz
  • Posljednji odgovor od 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>

Svi odgovori (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