Forums / Setup & design / Problem displaying flash after IE patch

Problem displaying flash after IE patch

Author Message

Ron Schöningh

Tuesday 18 April 2006 3:25:08 am

Hi All,

Microsoft issued an Internet Explorer patch which forces visitors to click on flash content in a page to enable it I decided to include the workaround provided by Adobe (http://www.macromedia.com/devnet/activecontent/).

Between the <head> tag I included:

	
<script src="/design/mws/javascripts/AC_RunActiveContent.js" type="text/javascript"></script>

and where the flashmovie should show up:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0',
'width','800','height','258','src','/design/path/images/intro.swf','quality','high',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','/design/path/images/intro.swf' );
</script>

The result is an empty space with the correct dimensions of the flash movie but the movie itself won't display. Before I had no problems displaying this movie.

What's wrong in the code above?

Thx, Ron

Myxt Web Solutions
http://www.myxt.nl

laurent le cadet

Wednesday 19 April 2006 7:58:58 am

Hi,

I followed this ( http://blog.deconcept.com/flashobject/ ) to solved the same problem and stored flashobject.js in my_sitea_cccess/javascript/flashobject.js

I call the .js from the template with the regular "eZway" :

<script language="JavaScript" src={"javascript/flashobject.js"|ezdesign}></script>

<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
   var fo = new FlashObject("/design/plain/images/home_viewer.swf", "home_viewer", "665", "150", "7", "#FFFFFF");
   fo.addVariable("diapovar", "{$diaporama}");

   fo.write("flashcontent");
</script>

It works fine.

Laurent

Ron Schöningh

Wednesday 19 April 2006 9:11:47 am

Hi Laurent,

Thanks for your reply!

One other thing I was thinking about is that the Microsoft patch will probably also affect flash or quick time movies which are uploaded by a site editor using a standard flash template.

Best regards, Ron

Myxt Web Solutions
http://www.myxt.nl

laurent le cadet

Thursday 20 April 2006 9:29:07 am

yes, as Microsoft seems to change it's mind daily, it should be good to adapt the .js solution to standard way flash movies are automatically "embed".
I think it can be simply done by hacking the embed/flash.tpl.

laurent le cadet

Thursday 20 April 2006 9:44:09 am

I'm thinking about something like this :

<script language="JavaScript" src={"javascript/flashobject.js"|ezdesign}></script>
       
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
   var fo = new FlashObject("{concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}", "objectid{$object.id}", "{$attribute.content.width}", "{$attribute.content.height}", "7", "#FFFFFF");
	fo.addParam("quality", "{$attribute.content.quality}");
	fo.addParam("wmode", "transparent");
	fo.write("flashcontent");
</script>

It should work.

Laurent

laurent le cadet

Thursday 20 April 2006 10:01:49 am

This works for me :

<script language="JavaScript" src={"javascript/flashobject.js"|ezdesign}></script>

<div class="view-embed">
    <div class="content-media">
    {let attribute=$object.data_map.file}
		<div id="flashcontent">
  			This text is replaced by the Flash movie.
		</div>
	<script type="text/javascript">
		var fo = new FlashObject({concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}, "objectid{$object.id}", "{$attribute.content.width}", "{$attribute.content.height}", "7", "#FFFFFF");
		fo.addParam("quality", "{$attribute.content.quality}");
		fo.addParam("wmode", "transparent");
		fo.write("flashcontent");
	</script>
    {/let}
    </div>
</div>

Laurent

eZ debug

Timing: Jan 18 2025 19:08:27
Script start
Timing: Jan 18 2025 19:08:27
Module start 'content'
Timing: Jan 18 2025 19:08:27
Module end 'content'
Timing: Jan 18 2025 19:08:27
Script end

Main resources:

Total runtime0.8305 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0112 588.9609180.8281
Module start 'content' 0.01120.6502 769.7891583.3281
Module end 'content' 0.66140.1691 1,353.1172341.3828
Script end 0.8305  1,694.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5437210.0002
Check MTime0.00160.1952210.0001
Mysql Total
Database connection0.00210.256110.0021
Mysqli_queries0.729287.80602030.0036
Looping result0.00280.34202010.0000
Template Total0.788895.020.3944
Template load0.00230.281720.0012
Template processing0.786594.698320.3932
Template load and register function0.00040.050310.0004
states
state_id_array0.00100.125310.0010
state_identifier_array0.00090.109720.0005
Override
Cache load0.00200.2428400.0001
Sytem overhead
Fetch class attribute can translate value0.00170.205330.0006
Fetch class attribute name0.00250.301570.0004
XML
Image XML parsing0.00110.130230.0004
class_abstraction
Instantiating content class attribute0.00000.0047100.0000
General
dbfile0.00350.4191270.0001
String conversion0.00000.001030.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs