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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -