Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Forcing Full-Screen

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Terry AllenForcing Full-Screen
by on Mar 23, 2012 at 6:43:30 pm

According to the Adobe help-file, "StageDisplayState.FULL_SCREEN_INTERACTIVE" only works in Air and is unavailable in Flash Player.

Is it possible to force full-screen with ActionScript 3.0 from within Flash Player, and if so, how?

Thanks


Return to posts index
Reply   Like  

Tim BaldwinRe: Forcing Full-Screen
by on Mar 24, 2012 at 10:13:03 pm

Programmatically switching Flash apps to full screen mode in a browser is not allowed. Imagine what would happen if Flash apps on a site you browse to could go full screen without your permission.

One way you can approximate this behavior is to determine the size of the display inside your Flash app and then set your app to that size. For instance, in Strobe Media Player you might add something like:

if (configuration.startMaximized){
mainContainer.width = _stage.fullScreenWidth;
mainContainer.height = _stage.fullScreenHeight;
} else {
mainContainer.width = _stage.stageWidth;
mainContainer.height = _stage.stageHeight;
}

However, this only set the size of the Flash app. You also have to define with size of the app when it is instantiated on a web page. Finally, you have to run a browser in kiosk mode so it will display the web page and nothing else. I've tested chrome kiosk mode in Linux and it works fine; cannot speak for Windows and OSX.

If your Flash player includes code such as the above example and you instantiate the .swf alone on an html page with a size of 1920x1200, for example, and you run the browser in kiosk mode, you will see your Flash app appear to be full screen on any display that is 1920x1200 or smaller.

This may or may not fit your application, but it is the best way I have found to approximate full screen programmatically.

Tim Baldwin
Kulabyte
http://www.kulabyte.com
Twitter: @kulabyte


Return to posts index
Reply   Like  

Terry AllenRe: Forcing Full-Screen
by on Mar 25, 2012 at 6:16:26 pm

Thank you for your response.

I should have been more specific: this is a desktop-only application. It's actually a series of audio-visual classroom presentations for driver-training and I want all the presenter to control everything from the keyboard, so there are no buttons or cursors on the screen. I believe the OS will always be windows, and I don't think the Flash Player title bar or it's windows frame add anything to my graphics... the paying public should never "see the wires".

It seems that I'll have to publish for Adobe Air to get what I want without forcing the presenter to press Ctrl-F.


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]