PDA

View Full Version : Dynamic Resize of Flash Height?


obrigado
02-28-2008, 03:01 AM
I need some help getting my flash content to scale without hogging the whole browser window.

I want the content to scale to fit the width of the window, but I do NOT want the flash container to fill the space below the stage content with off-stage wasteland.

I've tried every possible combination of scale, width, height, wmode, and align values in the html file... nothing seems to work: I still get this unfortunate behavior.

Basically, I want the height of the flash container to remain at a fixed ratio to the dynamically scaling width value. (I need to put HTML content right below it) I tried setting the "width" value to 100% and leaving the "height" value blank... doesn't work, the height just remains fixed regardless of the width.

I suppose I could write some JavaScript to dynamically resize a a DIV containing the flash content, but is there a more elegant solution?


This demonstrates the problem:
http://molior.net/flash_crisis/

Thanks!

obrigado
02-28-2008, 06:13 AM
Still trying to sort this.

Here's a JavaScript stop-gap if anyone's interested, haven't tested it outside Safari/Firefox yet:

Just the div:
http://molior.net/flash_crisis/fixed_div.html

With flash:
http://molior.net/flash_crisis/fixed_flash.html