ActionScript 3 Files Using FLVPlayback Take Over the Screen

As my friend and I continue to learn the finer details of AS3 development we have come upon some interesting things. Today I learned about the fullScreenTakeOver property of the FLVPlayback Component.
Regardless of the settings and scale properties we set for the FLVPlayback component in our file, the FLVPlayback would take over the sceen when we ran our projector file. I stumbled upon the fullScreenTakeOver property of the FLVPlayback Component and noticed that the default value is true.
Here is the description from the help file:
When the stage enters full-screen mode, the FLVPlayback component is on top of all content and takes over the entire screen. When the stage exits full-screen mode, the screen returns to how it was before.
In our case the fix was easy enough:
import flash.system.fscommand;
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
flvPlybk.fullScreenTakeOver = false;
Everything works as desired now. This example obviously deals with Projectors but this might rear its head in fullScreen browser mode as well so be on the lookout.

Took me a while to get to this, thanks. FYI it happens to browsers as well.
However, has anyone found out how to deal with the following situation: I have a base fullscreen interface, and there are FLVPlayback instances on the interface. I want the fullscreen toggle buttons in those instances to be able to switch nicely from their normal/fullscreen states, all *within* the fullscreen interface.
It doesn't work at the moment, the fullscreen toggle will throw the entire interface's fullscreen state back and forth.
Anyone?
Posted by
passenger |
7:23 PM
I am having the same problem. I would like to launch fullscreen flash and then I would like the user to launch the video into fullscreen mode and if they get out of video fullscreen I would like the swf to return to fullscreen.
Anyone?
I am thinking of seeing if I can add an evenListener to video fullscreen and listen for it to exit fullscreen mode and then run a function that will set everthing back the way I want it?
Posted by
mswallace |
9:53 AM
There is a fullscreen event. I beleive its Event.FULLSCREEN
Posted by
Anonymous |
1:54 PM
I have spent more than a week looking for this code. Thank you so much, my quest is now complete.
Posted by
Larry |
5:28 PM
No problem ;)
Posted by
Sarge |
9:01 PM
awesome. Good observation.
Posted by
Anonymous |
6:54 PM