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

eZ debug

Timing: Jan 31 2025 06:26:26
Script start
Timing: Jan 31 2025 06:26:26
Module start 'content'
Timing: Jan 31 2025 06:26:26
Module end 'content'
Timing: Jan 31 2025 06:26:26
Script end

Main resources:

Total runtime0.2932 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0625180.8125
Module start 'content' 0.00770.0070 768.875098.0547
Module end 'content' 0.01470.2783 866.9297526.2500
Script end 0.2930  1,393.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.2008200.0002
Check MTime0.00140.4689200.0001
Mysql Total
Database connection0.00080.277910.0008
Mysqli_queries0.242082.55511410.0017
Looping result0.00220.75321390.0000
Template Total0.277894.810.2778
Template load0.00100.335010.0010
Template processing0.276894.419610.2768
Override
Cache load0.00070.235310.0007
Sytem overhead
Fetch class attribute can translate value0.00090.316810.0009
XML
Image XML parsing0.00020.080810.0002
General
dbfile0.00581.9935200.0003
String conversion0.00000.001630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs