flash in IE7

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/7/2010 12:38:09 AM
Gravatar
Total Posts 125

flash in IE7

I use the following code to load a flash banner

<div id="wrapheader">
<object width="960" height="160">
<param name="movie" value="/data/matasoftimage/bannerCN.swf" wmode="transparent">
<embed src="/data/MatasoftImage/bannerCN.swf" width="960" height="160" wmode="transparent">
</embed>
</object>
</div>

it works great in Firefox and IE8, but it cannot be loaded in IE7. The site just freezes.

Thank you for help.

1/25/2010 1:24:31 PM
Gravatar
Total Posts 67

Re: flash in IE7

look into swf object. There are licensing issues with Flash in IE, which is why swf object was constructed. http://code.google.com/p/swfobject/

1/25/2010 11:59:40 PM
Gravatar
Total Posts 125

Re: flash in IE7

Thank you for replying. I found that mojo already has the swfobject script included. I found the key in web.config <add key="SwfObjectUrl" value="~/ClientScript/SwfObject/2.2/swfobject.js" />. However, I didn't find the script in the location indicated in the  key. 

I include the script from the scriptloader in layout.master and it works now.

1/26/2010 9:36:16 AM
Gravatar
Total Posts 2187

Re: flash in IE7

There is also an option on the HTML Content Feature in the settings that allows you to include the swfobject.

HTH,
Joe D.

1/26/2010 2:56:02 PM
Gravatar
Total Posts 125

Re: flash in IE7

hi, all

I tried to use the swfobject script to add a flash banner in my layout.master and the flash has been displayed sucessfully. The only problem is I cannot set the transparent parameter in script and the flash banner is on top of everything.

Here is the script I used:

script type="text/javascript">
swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
</script>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="960" height="160">
<param name="movie" value="/Data/matasoftimage/bannerCN.swf" />
<param name="wmode" value="transparent" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/Data/matasoftimage/bannerCN.swf" width="960" height="160">
<!--<![endif]-->
<p><a href="http://www.adobe.com/go/getflashplayer">
<img alt="Get Adobe Flash player" src="/data/matasoftskin/banner.jpg"/></a>
</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
 

1/26/2010 3:15:02 PM
Gravatar
Total Posts 67

Re: flash in IE7

I'm pretty sure that you have to add wmode="transparent" to the object tag as well. I think that the param only applies to certain browsers.

1/26/2010 3:20:18 PM
Gravatar
Total Posts 67

Re: flash in IE7

documentation here: http://code.google.com/p/swfobject/wiki/documentation but I know that you can download a little utility from the google code page that will construct the proper code for you based on boxes that you tick and whatnot. I think that it's this zip here: http://swfobject.googlecode.com/files/swfobject_generator_1_2_html.zip

1/26/2010 4:00:13 PM
Gravatar
Total Posts 125

Re: flash in IE7

thank you. Everything works perfect.

You must sign in to post in the forums. This thread is closed to new posts.