Search code examples
htmlcssflashbackground

Responsive flash?


EDIT: I believe its safe to say that Flash is finally being discontinued.

A client recently ask for a flash background, ie, the flash had to be on the background. How do I give a flash object 100% width while the height is defined?

And since the animation will stretch across the screen, is it possible to make the animation repeat itself within the window?

I hope the following image will clarify what I mean -

enter image description here

(sorry for the half-witted title.)


Solution

  • You should be able to set the flashObject at 100% width and a static height in html. Any tiling would have to be done within flash itself. You'd probably have to make heavy use of events that relate to the size of the stage changing.

    http://swffit.millermedeiros.com/ would be a good resource to go to as well. It does allow you to use 100% width and specify a max/min height. Unfortunately, the script is no longer in active development, and may have to be modified for modern browsers.

    I agree with David's suggestion to go another route, but I know how clients can be sometimes...