Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

toggle full screen with javascript outside the flash file

Guest
Jul 22, 2008 Jul 22, 2008
hi. I am trying to create an external html button which will toggle the full screen mode.

ExternalInterface.addCallback("swfullscr",fulla);
function fulla():void {
h.x = 30;
stage.displayState=StageDisplayState.FULL_SCREEN;
}

i've called this actionscript code via javascript.
the "h" is a scrollpane.
and when i call the "swfullscr" function via javascript, the "h.x = 30;" line works just fine..
but the "stage.displayState=StageDisplayState.FULL_SCREEN;" line does not work at all..
why is that..
I've enabled "allowFullScreen" in html, and also it works fine with a normal button click event inside flash movie. But does not work from an external call..??
and how can i manage to create an external html button for fullscreen toggle in another way.
Please help...

Thanks..

TOPICS
ActionScript
680
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 23, 2008 Jul 23, 2008
no help ?? =/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2008 Jul 24, 2008
LATEST
My understanding is that Flash will not allow you to do that. Full screen mode is invoked only if explicitly requested from within the flash on mouse events.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines