0
Get window size of the browser
New Here
,
/t5/animate-discussions/get-window-size-of-the-browser/td-p/182032
Jul 30, 2008
Jul 30, 2008
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Orlenka
AUTHOR
New Here
,
/t5/animate-discussions/get-window-size-of-the-browser/m-p/182033#M6391
Jul 31, 2008
Jul 31, 2008
Copy link to clipboard
Copied
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?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/animate-discussions/get-window-size-of-the-browser/m-p/182034#M6392
Aug 01, 2008
Aug 01, 2008
Copy link to clipboard
Copied
Try externalInterface class of Flash and onresize events in
JavaScript.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/get-window-size-of-the-browser/m-p/182035#M6393
Aug 01, 2008
Aug 01, 2008
Copy link to clipboard
Copied
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
http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

