By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,793 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,793 IT Pros & Developers. It's quick & easy.

FlashVar link wont work

P: 20
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.
Oct 6 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
If it's just a problem with passing flashvars, see this link. If not, it's probably a Flash problem and you should ask in the Flash forum.
Oct 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.