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;
}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 03:26:30
Script start
Timing: Jan 19 2025 03:26:30
Module start 'layout'
Timing: Jan 19 2025 03:26:30
Module start 'content'
Timing: Jan 19 2025 03:26:31
Module end 'content'
Timing: Jan 19 2025 03:26:31
Script end

Main resources:

Total runtime0.9700 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2891152.6406
Module start 'layout' 0.00610.0027 741.929739.4766
Module start 'content' 0.00880.9598 781.4063600.1641
Module end 'content' 0.96860.0014 1,381.570312.1250
Script end 0.9700  1,393.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3285160.0002
Check MTime0.00140.1452160.0001
Mysql Total
Database connection0.00110.109910.0011
Mysqli_queries0.914494.2664650.0141
Looping result0.00060.0591630.0000
Template Total0.935996.520.4680
Template load0.00180.190220.0009
Template processing0.934196.293820.4670
Template load and register function0.00030.026310.0003
states
state_id_array0.00090.088710.0009
state_identifier_array0.00100.105120.0005
Override
Cache load0.00160.1610350.0000
Sytem overhead
Fetch class attribute can translate value0.00050.055230.0002
Fetch class attribute name0.00120.126360.0002
XML
Image XML parsing0.00070.076930.0002
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00210.2125180.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs