Forums / Setup & design / Problem with dimensions of a SWF animation

Problem with dimensions of a SWF animation

Author Message

Roberto Anastasi

Monday 23 May 2005 6:42:46 am

Hi everybody,
I need to insert a SWF animation in the home page of a site. The animation is loaded inside a cell of a table of the home.tpl. Everything it's ok if I leave the dimensions in pixels. Since I need the animation auto-resizing with the browser, I put (in the tag OBJECT and EMBED) "widht" and "height" = 100%. In this case, however, nothing is displayed.

Anybody can help me ?!? Thanks

Roberto

Łukasz Serwatka

Tuesday 24 May 2005 12:24:28 am

Hi Roberto,

Your question isn`t releated directly to eZ publish, but try this code ;)

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
  <param name="movie" value="banner1.swf">
  <param name="quality" value="high">
  <embed src="banner1.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>

Replace banner1.swf with your path_to_the_file. This code should works.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Roberto Anastasi

Wednesday 25 May 2005 12:31:38 am

Hi Lukasz,
thanks for your tips. Effectively the problem wasn't in EZ but in the HTML code of the page...three tables one in another with the SWF in the last. Now, using your code and simplifing the HTML of the page everything works fine !!! Great.

Thanks a lot

Roberto

Leomar Soares

Friday 08 July 2005 12:10:47 pm

{
height: 201px;

/* background-image:url(images/main_photo.png);*/

background-image:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pu...h/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="url(images/main_photo.swf">
<param name="quality" value="high">
<embed src="url(images/main_photo.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>);

background-repeat:no-repeat;
}

Leomar Soares

Friday 08 July 2005 12:31:45 pm

Alguem poderia me ajudar neste parametro?, quero inserir um arquivo swf em página!

{
height: 201px;

/* background-image:url(images/main_photo.png);*/

background-image:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pu...h/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="url(images/main_photo.swf">
<param name="quality" value="high">
<embed src="url(images/main_photo.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>);

background-repeat:no-repeat;
}