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

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 18 2025 22:19:42
Script start
Timing: Jan 18 2025 22:19:42
Module start 'layout'
Timing: Jan 18 2025 22:19:42
Module start 'content'
Timing: Jan 18 2025 22:19:43
Module end 'content'
Timing: Jan 18 2025 22:19:43
Script end

Main resources:

Total runtime0.9525 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1484152.6406
Module start 'layout' 0.00650.0038 741.789139.4766
Module start 'content' 0.01030.9406 781.2656578.2344
Module end 'content' 0.95090.0016 1,359.500016.1406
Script end 0.9525  1,375.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3575160.0002
Check MTime0.00140.1469160.0001
Mysql Total
Database connection0.00080.082010.0008
Mysqli_queries0.881692.5503660.0134
Looping result0.00080.0854640.0000
Template Total0.908995.420.4544
Template load0.00200.207320.0010
Template processing0.906995.209520.4534
Template load and register function0.00020.025610.0002
states
state_id_array0.00180.186610.0018
state_identifier_array0.00150.154120.0007
Override
Cache load0.00170.1797400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.053920.0003
Fetch class attribute name0.00110.116270.0002
XML
Image XML parsing0.00130.141420.0007
class_abstraction
Instantiating content class attribute0.00000.0030100.0000
General
dbfile0.00180.1847160.0001
String conversion0.00000.001240.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs