Skip to main content
Participant
October 17, 2008
Question

Fullscreen Flash Projector

  • October 17, 2008
  • 2 replies
  • 2415 views
Hello everybody.

I used to make fullscreen Flash websites, using 100x100 width/height and "No Scale" on Publish Settings.
Everything is ok on a browser, since I can position elements using relative coordinates for liquid layouts.

Now I have to make a fullscreen standalone .exe projector.

To get fullscreen I use fscommand("fullscreen", "true") on the first frame and it works.

The problem is:

If I create a 1024x768 Flash movie, even with 100x100 and "No Scale" activated, the movie remains at 1024x768.
So, if I trace stage.stageWidth and stage.stageHeight, those remain respectively at "1024" and "768", but I need for the movie to get the max width and max height available on the system.

In the browser it happens automatically, but in the Flash projector it doesn't.

*** So, how can I get the movie to match the exact size of the screen where it runs? ***

I've tried with Capabilities.screenResolutionX and Y but there is no way (and I think it's normal) to set the stage.width and stage.height properties on runtime.

Thank you.
This topic has been closed for replies.

2 replies

October 20, 2008
I haven't used projectors much... so you're saying that stage.stageWidth/stageHeight don't give the actual stageWidth/stageHeight when you go into fscommand("fullscreen"), or that noScale doesn't work?

Two alternatives come to mind:

1. Use stage.displayState = "fullscreen" instead. You won't get any keyboard input when in this type of fullscreen, though.

2. Use Adobe AIR. You can start using it without having to purchase anything. I use the same method you do (set scaleMode to "noScale" and react to stage.stageWidth/stageHeight) all the time in AIR and it works as expected. AIR, of course, requires Adobe AIR to be installed to run, and you have to install your application as a .air file.
Inspiring
October 17, 2008
There were some new features added to FlashPlayer 9, properties of the stage called fullScreenWidth and fullScreenHeight. They were introduced to solve your problem.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Stage.html

I have to warn you, I've been having issues with these new properties (they don't show up) but it only affects the machine I work on. I've tested on a dozen other machines and they work just fine. You just need to have all updates installed and the latest flash player 10.
Participant
October 18, 2008
Thanks, Giga Dre...
... but I see those properties are read-only, so they are for me useless as Capabilities.screenResolutionX and Y.