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.