I am working on a flash player in AS3, and the default skin
control the fullscreen behavior, and even launch the player
fullscreen when playing. The problem I am encountering is a
security error. I have allowFullScreen = true and
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
http://adobe.com/AS3/2006/builtin::apply() at ()
What is odd is I can tell the player to go to normal screen
from fullscreen, but not the other way around.
I looked at the flvplayback.as file and noticed that the
fullscreen control is attached to the component
_vc.stage.displayState = StageDisplayState.FULL_SCREEN; to launch
fullscreen when handled by the fullscreen button event.
I've tried both stage.displayState =
and FLVPlayBack.stage.displayState =
Both result in the error, any ideas as to what I am missing?
why is this sandboxed from outside the player?
I believe from memory that an event in flash has to preceed
the fullscreen enabled mode from being enabled - keypress or
mousepress. This is to prevent, for example, someone using code to
set Fullscreen to true without user intervention/decision. I
suspect this is why exiting fullscreen is permitted but not
Can't say for sure, but it makes sense given the 'rules' for