I have this page that works great in every browser I've tried except IE. It uses javascript to pass variables to a .swf and whenever I look at it in IE it give me this error:
'flashvideoplay er' is null or not an object.
This is the page that I'm working on:
The function that is giving me problems is this:
[CODE=javascript]function initialize() {
flashvideoplaye r = window.videopla yer;
}
[/CODE][HTML]<body onLoad="initial ize();" >[/HTML]
.... which refers to my .swf file here:
[HTML]<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=9,0,0,0" width="450" height="338" name="videoplay er" />
<param name="allowScri ptAccess" value="always" >
<param name="movie" value="video.sw f" />
<embed src="video.swf" quality="high" bgcolor="#fffff f" width="450" height="338" name="videoplay er" allowScriptAcce ss="always" type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" id="videoplayer " >
</object>
[/HTML]
Unfortunately I only know enough javascript to be dangerous so
any help or suggestions would be greatly appreciated.
'flashvideoplay er' is null or not an object.
This is the page that I'm working on:
The function that is giving me problems is this:
[CODE=javascript]function initialize() {
flashvideoplaye r = window.videopla yer;
}
[/CODE][HTML]<body onLoad="initial ize();" >[/HTML]
.... which refers to my .swf file here:
[HTML]<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=9,0,0,0" width="450" height="338" name="videoplay er" />
<param name="allowScri ptAccess" value="always" >
<param name="movie" value="video.sw f" />
<embed src="video.swf" quality="high" bgcolor="#fffff f" width="450" height="338" name="videoplay er" allowScriptAcce ss="always" type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" id="videoplayer " >
</object>
[/HTML]
Unfortunately I only know enough javascript to be dangerous so
any help or suggestions would be greatly appreciated.
Comment