PDA

View Full Version : Flash won't load in IE (causes browser to hang, working)


]|V|[agnus
03-02-2006, 03:17 PM
I've been adding a section to this site which already had the Flash working fine. Since I've gone back in, I haven't changed any of the <object /> code used, and it's not a movie working with server side data or anything. It's a one-frame-er with some simple ActionScript to assign rollover/out and click actions.

It is a part of a Rails app, so I've tested possible conflicts therein... removed scripts, and then I even removed Rails from the equation altogether, serving up just the markup necessary for the Flash movie via Apache... same result in IE.

What happens is everything else will load up fine, scripts will even take effect, but the browser will show only partial load status and continue to "work" seemingly forever, while the Flash movie doesn't load.

I've searched Macromedia, Microsoft, Google... not coming up with anything, and I'm fairly well stumped. Here is the AS for the movie, if by chance it might offer any insight.


for (prop in _root) {
if (prop != "$version") {
_root[prop].onRollOver = function() {
getURL('javascript:get_available_building("'+this._name+'")');
};
_root[prop].onRollOut = function() {
getURL('javascript:get_available_building()');
};
_root[prop].onPress = function() {
getURL('/living-options/for/'+this._name);
};
}
}
stop();


It's just supposed to be a simple navigation interface. Here is the related <object /> code as well:


<object
data="/swf/interactive-rendering-home.swf"
width="750"
height="256"
type="application/x-shockwave-flash"
>
<param name="quality" value="high" />

<param name="pluginurl" value="http://macromedia.com/go/getflashplayer" />
<!--[if IE]
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
width="750"
height="256"
>
<param name="movie" value="/swf/interactive-rendering-home.swf" />
<param name="quality" value="high" />
</object>
<![endif]-->
</object>

Nikolai459
03-02-2006, 05:32 PM
Not sure if this will solve your problem but this worked for me...


<tr>
<td align=center width="100%">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="600" HEIGHT="150" id="body.swf" ALIGN="">

<PARAM NAME=movie VALUE="/swf/body.swf">

<PARAM NAME=menu VALUE=false>

<PARAM NAME=quality VALUE=high>

<PARAM NAME=scale VALUE=exactfit>

<PARAM NAME=bgcolor VALUE=#ffffff>

<EMBED src="/swf/body.swf" menu=false quality=high scale=exactfit bgcolor=#ffffff WIDTH="600" HEIGHT="150" NAME="/swf/body.swf" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">

</EMBED>

</OBJECT>

</td>
</tr>

]|V|[agnus
03-02-2006, 05:44 PM
Not surprisingly, those few <param /> tag differences had no effect. And I'm not using <embed /> for obvious reasons.

]|V|[agnus
03-02-2006, 05:50 PM
For what it's worth, my theory at this point is that is something to do with the Flash movie, as the markup was fine prior. But the movie is just one frame, several buttons, and a simple script(pasted previously) to assign some actions to the buttons. Only minor modifications(different button names, different URLs to call) have been made to this side of things.

]|V|[agnus
03-03-2006, 07:26 PM
More, for what it's worth... I finally tried the old-school object-embed approach and it is now functioning normally. The nested object approach works, though, so methinks the Rails SwfHelper I created to generate the markup was malformed somehow. I added recognition for an :embed option in its options hash which satiates for the time being:

<%= swf 'file_name', :width => some_number, :height => some_number, :embed => true %>

:thumbsup:

drhowarddrfine
03-03-2006, 08:16 PM
I'm on the run but try this (works in xhtml):

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>

areamike
11-21-2007, 02:14 PM
I'm on the run but try this (works in xhtml):

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>

Your code works for me.

I think the problem above is caused by this:

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"

There is no more MACROMEDIA> The link is wrong. Adobe owns the product now. I'm sure there is an updated version of those hyperlinks.
The FUNNY thing is Adobe's website still references macromedia's site as well for those links...
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701&sliceId=2