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

Get window size of the browser

New Here ,
Jul 30, 2008 Jul 30, 2008
Hi everyone,

i'm trying to get the size in Y of the window of the internet browser (ie: firefox) to apply it to my stage height and make my stage adapts constantly to the browser window height.

I'm new to AS3, the only thing i did is putting the import flash command and then i'm lost, don't know what to do to get those parameters.

Thanks for help

Orlenka

TOPICS
ActionScript
641
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
New Here ,
Jul 31, 2008 Jul 31, 2008
Is there anyone who can give me a solution or a starting point that i can get those data? A procedure on how to get the width and height of the browser window?
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
LEGEND ,
Aug 01, 2008 Aug 01, 2008
Try externalInterface class of Flash and onresize events in JavaScript.
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
Aug 01, 2008 Aug 01, 2008
LATEST
Yup, you will have to generate the function in Javascript, then setup the hook for ExternalInterface to communicate back to Flash. This JS should help you regarding size:

http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
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