Click to See Complete Forum and Search --> : stretchy iframe or similar idea for flash movie


mistafeesh
08-07-2007, 03:46 PM
Hi. My website has a fluid design, which I'm very happy with in general, but I've just been trying to incorporate a flash movie into it, which is also stretchy!

I've tried using an iframe to call it in, and it's fine getting it to take advantage of all the width available, but it wont stretch vertically to take advantage of all the height available...

actually I've just been and looked at the code used to call in the flash movie, and it's a bit more than that... It's a javascript too.

It's an automatically generated photo album thingy. here's the code used to call it in. I just want to put it into a stretchy table and for it to use all available space.

any ideas?

the code:

<script type="text/javascript">
// <![CDATA[

document.title = "bananalbum";
bgcolor = "#ffffff";
imgcolor = "#ffffff";
linecolor = "#000000";
txtcolor = "#000000";

respath = "res/";
var so = new SWFObject("res/BananAlbum.swf", "BananAlbum", "100%", "100%", "8", "#ffffff");
so.addVariable("jalbum", "true");
so.addVariable("bgcolor", bgcolor.replace("#","0x"));
so.addVariable("imgcolor", imgcolor.replace("#","0x"));
so.addVariable("linecolor", linecolor.replace("#","0x"));
so.addVariable("txtcolor", txtcolor.replace("#","0x"));
so.addParam("allowFullScreen", "true");
so.write("flashcontent");

// ]]>
</script>

a.g.r.c
08-12-2007, 11:53 PM
Flash will scale the movie so far, relative to the document width and height.

If the upscaling is going to affect its proportions, it will stretch its width to its maximum, and if it fails to make the height grade, because of table restrictions... then so be it.

You have specified to make it 100% and 100% not much else you can do, unless you upscale even more, and chop off some of your movie...

Hope this helps

a.g.r.c