Connecting Tech Pros Worldwide Help | Site Map

FlashVar link wont work

Newbie
 
Join Date: Feb 2007
Posts: 20
#1: Oct 6 '08
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.
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#2: Oct 7 '08

re: FlashVar link wont work


This should probably be in the Javascript/Ajax forum...Experts there could probably assist you better, since this is Javascript language, and not Actionscript.

joedeene
Reply


Similar Flash / Actionscript bytes