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..