actionscript 3 - AS3: Fullscreen button when SWF is embedded in HTML -
This is the callback function for my fullscreen button. This works if you play SWF in a standalone player, but it does nothing if it is embedded in an HTML.
var isFS: boolean; Function ToggleForf (Event: Mouse Event): Zero {isFS =! IsFS; If (isFS) {stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; } And {stage.displayState = StageDisplayState Normal; }} In the Flash Pro CS6 publish settings, I have the HTML wrapper template setting on "Allow only Flash - Full Screen". HTML has the following code, which should allow SWF to go to fullscreen:
& lt; Object ... & gt; & Lt; Param name = "allowFullScreen" value = "true" /> I have tested it in Firefox, Chrome, and IE, and the fullscreen button will not work in any of these. Does anyone know what I am doing wrong?
Never mind, HTML should be & lt; Param name = "allowFullScreenInteractive" value = "true" /> Instead of working with full keyboard input.
Comments
Post a Comment