Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Wednesday, September 22, 2010

swffit - Smart Flash Resize Script

http://swffit.millermedeiros.com/

"swffit was made to improve accessibility of your flash website.

It was made because each user uses a different screen resolution and resizes the browser window at custom sizes.. when you set the flash size to 100% width and/or height (full bleed) the browser won't generate scrollbars and maybe an important content will be hidden from the user.

In short: It controls how big and how small your Flash movie can be scaled to within a browser window (assuming you're at 100%). Adds necessary scrollbars if someone resizes the window to a size smaller than the minimum.

Thursday, February 26, 2009

Fullscreen Flash Flickering

Something's been bugging me ever since I made a Flash site go completely 100% browser window. In Internet Explorer, when I would resize the site, the browser window's content would flicker black all the way from full size to as small as I could make the window. The site was more than usable, but the flickering was enough to annoy the hell out of me, and make me wonder if someone was going to call me out on it. I checked through all of my Flash code and I couldn't figure it out. You could still hear the site, but not see it, nor were any of the buttons clickable. Resize a little more, the site comes right back. Resize as small as the window goes? Gone again. I swore it had something to do with my full Flash black fade, but I removed that layer and it persisted.

This only happened in IE, so it made me wonder if it was an HTML issue.

Anyway, the short of it, I added two lines to my body CSS (which are also in my HTML CSS):

height:100%
width:100%

The flickering is gone. Whew.

I could sit here and tell you that it has something to do with the way that Internet Explorer renders its viewport, that the body is really just another container within your HTML hierarchy, so making sure both your body and HTML CSS have these percentage values..blah blah..blah....

But then I'd be making things up. I really have no clue.