Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fullscreen Flash Projector

Explorer ,
Oct 17, 2008 Oct 17, 2008
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.
TOPICS
ActionScript
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 17, 2008 Oct 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 18, 2008 Oct 18, 2008
Thanks, Giga Dre...
... but I see those properties are read-only, so they are for me useless as Capabilities.screenResolutionX and Y.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 19, 2008 Oct 19, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines