Hi
I am embedding a swf object. I try:
[HTML]<script type="text/javascript" src="../scripts/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {
linktarget: "_top",
link: "http://www.google.co.za",
linkfromdisplay: "true"
};
var params = {
menu: "false",
};
swfobject.embedSWF("Clarence_Ford.swf", "divFlash", "468", "60", "9.0.0", "", flashvars, params);
</script>
<div id="divFlash">
<a href="http://www.google.co.za" border="0">
<img src="468_60px_GS_F.GIF" /></a>
</div>[/HTML]
and i have tried:
[HTML]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="550" height="400" align="middle">
<param name="movie" value="Clarence_Ford.swf">
<param name="allowScriptAccess" value="always">
<param name="flashVars" value="link=http://www.google.com" />
<embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"
width="550" height="400" align="middle" src="Clarence_Ford.swf"
allowscriptaccess="always"></embed>
</object>[/HTML]
yet when i click on the flash object once the page has rendered it does not redirect me to the link that is set in the flashvars.
What could possibly be wrong? Is it maybe the swf file itself that does not all me to pass the flashVars. Every website I look at uses either one of the above methods yet it refuses to work for me.
note the example top uses swfobject.js
Any help appreciated.