Automatic broswer resizing

hi…

Can anyone point me in the right direction for this please…

I’m looking for my browser window (not the flash movie) to open up and resize itself to the resolution of the viewers screen.

I know that this is html…but I know you’re all so helpful

thanks

postatomic:evil:

It’s JavaScript, actually… There’s a script that will detect the user’s screen resolution - find it on any good JS site. :slight_smile: The you should be able to use if statements, based on the result that function returns, to display the correct sized window with width and height specified. :slight_smile:

Sorry I don’t actually have the detection script to hand…

you can do it within flash… =)

resizeWindow = function() {
	var w = System.capabilities.screenResolutionX, h = System.capabilities.screenResolutionY;
	getURL("java script:window.moveTo(0, 0); window.resizeTo("+w+", "+h+");");
};
resizeWindow();

:wink:

ps. remove the space between java and script.

Cool, I’d only ever used the JS version. :slight_smile:

thanks for the help but where do you place the actionscript…?

is it just on the first frame of the movie?

yeah… or at any frame when you want to resize the window. :wink: