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

FlashVar link wont work

P: 20

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: "",
linkfromdisplay: "true"
var params = {
menu: "false",

swfobject.embedSWF("Clarence_Ford.swf", "divFlash", "468", "60", "9.0.0", "", flashvars, params);

<div id="divFlash">
<a href="" border="0">
<img src="468_60px_GS_F.GIF" /></a>

and i have tried:

[HTML]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",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=" />
<embed type="application/x-shockwave-flash" pluginspage=""
width="550" height="400" align="middle" src="Clarence_Ford.swf"

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

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.