Topic: height=100% not working for a Flash movie

Hello,

I'm using PunBB 1.2.12 and would like to embed a Flash movie
at 1 of its pages. The Flash movie should be strechted and that
is why I have added HEIGHT=100% and WIDTH=100% to its
OBJECT- and EMBED-tags:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 
width="100%" height="100%" id="Pref">
<param name="movie" value="Pref.swf" />
<param name="bgcolor" value="#999999" />
<param name="FlashVars" value="id=1&hash=xxx">
<embed src="Pref.swf" bgcolor="#999999" width="100%" height="100%" 
name="Pref" FlashVars="id=1&hash=xxx" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" />

Unortunately while the WIDTH=100% seems to work, the HEIGHT doesn't.

I suspect that PunBB CSS settings are the cause and have tried putting
this line into /style/phpbb_blue.css and /style/Radium.css :

HTML, BODY, OBJECT { MARGIN: 0; PADDING: 0; WIDTH: 100%; HEIGHT: 100%; }

That didn't help either. The height of my Flash movie is too tiny
and it looks like it has been squashed by a hammer. Here it is:

http://preferans.de/height.php

Does anybody please have an advice for me? I'm not very fluent in CSS

Regards
Alex

PS: I'm using Firefox 1.0.7 both on Linux and Windows

http://preferans.de/ - russian card game

2

Re: height=100% not working for a Flash movie

Its not PunBB's css, you have problems even with the css turned off. It doesn't work at all in IE or Opera. Your markup is invalid in lots of ways but particularly you need to close the <object> tag before you try anything else.

Re: height=100% not working for a Flash movie

Hello Paul!

It is very stupid of me not to close the OBJECT-tag. Thank you for noticing that.

I have closed it now but the situation at http://preferans.de/height.php hasn't improved.

I'm not sure if you're right or not about PunBB's CSS not causing this problem.
When I replace the flash movie by an image then the HEIGHT=100% works
as expected - http://preferans.de/height2.php

I'm thankful for any hints (even though I'm not sure if it's still on topic)

Regards
Alex

http://preferans.de/ - russian card game

4

Re: height=100% not working for a Flash movie

I know I'm right about the css. If the stylesheets are disabled and the flash movie still doesn't work then its not the stylesheets. It could of course be the Doctype.

5 (edited by afarber 2006-07-16 11:57)

Re: height=100% not working for a Flash movie

overflow:visible; seems to have helped me:

<DIV STYLE="overflow: visible;">
<object type="application/x-shockwave-flash"
data="/Pref.swf" width="100%" height="100%">
<param name="movie" value="/Pref.swf">
<param name="bgcolor" value="#FFFFFF">
</object>
</DIV>

Regards
Alex

http://preferans.de/ - russian card game