Skip to main content
February 11, 2014
Question

full screen SWF wont fill whole screen

  • February 11, 2014
  • 1 reply
  • 1874 views

Flash CS6. I made an SWF that acts as a video playing menu. It used to go full screen until I started adding video elements to it. Im not sure if that has anything to do with it or not but now it opens in full screen but only fills its native size and the rest of the screen is filled with white. I am using the line:

stage.displayState = StageDisplayState.FULL_SCREEN;

It is on my first frame of my actions layer. I tried publishing a windows projector file as well and it does the same thing. I tried choosing Flash Only - Allow Full Screen for the HTML Wrapper too just to see if that would do anything and it didnt. Any ideas?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 11, 2014

if that's a web based app, you must use a button click to trigger your fullscreen.

if you're using an flvplayback component assign its fullScreenTakeOver property to false.

February 11, 2014

It is not a web based app. Its just a SWF that I want to burn to DVD to hand out a trade shows. It would then be opened and used as a menu to view videos and PDFs. Everything works with no errors but the full screen just wont. I dont know what you mean by flvplayback component but I dont have a line of code like that. Just the line I named. The videos code looks like this for each video:

FLVPlayer.visible = true;

    FLVPlayer.source = "Videos/2x2-final_13feb12.mp4";

    FLVPlayer.play();

I dont want the videos to go full screen I just want the SWF menu itself to. The videos play in the middle of the screen on the FLV and they are big enough.

kglad
Community Expert
Community Expert
February 12, 2014

it looks like you're using an flvplayback component named FLVPlayer.  if were executing that fullscreen code correctly, the player would fill the screen and you would need to use:

FLVPlayer.fullScreenTakeOver=false;

to prevent that.