Resize flash object
Permalink
Hi,
I use the flash content block to display a flash video. My problem is that the content is wider than 730px and it is not fit to its container.
I looked at the view.php of the block, and it uses the following code:
I tried to add the parameter to the "params" variable, but it doesn't work while an other parameter (salign: "tl") worked fine. I also tried to change the width and height of the swf object, and tried out different scale options, but nothing works. Can you help me please?
Thank You,
Levente
I use the flash content block to display a flash video. My problem is that the content is wider than 730px and it is not fit to its container.
I looked at the view.php of the block, and it uses the following code:
<script type="text/javascript">
params = {
bgcolor: "#000000",
wmode: "transparent",
quality: "<?php echo $controller->quality?>"
};
flashvars = {};
swfobject.embedSWF("<?php echo $file->getRelativePath()?>", "swfcontent<?php echo $bID?>", "<?php echo $w?>", "<?php echo $h?>", "<?php echo $controller->minVersion?>", false, flashvars, params);
</script>I tried to add the
scale: 'exactFit'
Thank You,
Levente