This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2006 > Browser window resize....





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Browser window resize....
sballen24@gmail.com

2006-04-21, 6:41 pm

Hello!

I'm hoping that someone can help me with a question that I've racking
my brain to solve....

I have a Flash movie that adjusts itself to center its contents in the
middle of whatever browser window and the background spreads to cover
the entire browser. The HTML is set at 100% width and 100%.

When I load my movie onto the server, it takes a second to download and
it does not center itself. HOWEVER, if you minimize or maximize the
browser screen, the movie snaps into place. To see what I'm talking
about, please check out www.studiosixdesign.com/newmath/3

What I'd like to know is if there is an action that I can put in the
Flash movie to call the browser window to resize from 100% to 101% and
then back to 100% again. This movement is so slight but it will make
the difference of the contents snapping into its proper place.

I've already tried putting this on one frame:

Object.prototype.sizeWindow = function() {
getURL("java script:window.resizeTo(screen.availWidth/2,screen.availHeight/2)");
};

sizeWindow();

and then putting this on the next frame:

Object.prototype.sizeWindow = function() {
getURL("java script:window.resizeTo(screen.availWidth/1,screen.availHeight/2)");
};

sizeWindow();

but the browser window movement is waaaay too obvious and looks like a
glitch, even though it's not.

Can anyone help me out or suggest what I should try to do?

Thanks so much!

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews