You are viewing the archives of the original Pixelfumes blog. This blog is no longer maintained. All of the content available on this site is available on the new Pixelfumes blog in addition to all of our new posts! Visit: http://blog.pixelfumes.com.

« Home | Flash-based Homestar Runner Rejects TV to Stay Tru... » | Flash CS3 Kuler Panel Video Demo » | Flash CS3 Kuler Panel Updates » | Flash CS3 Kuler Panel Updates Coming » | Kuler Panel for Flash CS3 » | Adobe Kuler Apollo Edition Released » | 12-Line Missile Code and RaidenX » | Easy XML Parsing using AS3 (ActionScript 3) » | Adobe CS2 and the Case of the Disappearing Thumbna... » | My Silly Apollo App - A Reflective CD Mirror » 

Wednesday, June 20, 2007 

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?

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?

There is a fullscreen event. I beleive its Event.FULLSCREEN

I have spent more than a week looking for this code. Thank you so much, my quest is now complete.

No problem ;)

awesome. Good observation.

Post a Comment