473,503 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FlashVar link wont work

20 New Member
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
1 2022
joedeene
583 Contributor
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
Oct 7 '08 #2

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

Similar topics

4
12597
by: rufus | last post by:
I want to add 2 'onclick' events to a link button but, of course, the javascript wont work. In other words: linkbutton.Attributes.Add("onClick", "MyFunction1();")...
1
1612
by: Mario | last post by:
I reinstalled IE 6 with all the windows 98 updates and patches and the problem remains exactly. Please tell me how can I solve this ? > Hello, > > Under windows98se and IE 6.0.2800.1106 , few...
9
20727
by: Targa | last post by:
I know you can do an onmouseover/onmouseout to display alternate text for links but Im looking for a script that would cover all links on a page without having to add code to each link. Is there...
5
2455
by: Mr Newbie | last post by:
Debug.Assert( False, "Why wont I display ??") I am trying to use this in my code but it wont display. The app is running on my local machine and the above code under a button click event. What...
3
6261
Frinavale
by: Frinavale | last post by:
Hi there, I am currently behind a firewall that wont let me send emails. As a result my smtpClient.send(emailMessage) wont work on my IIS but this method does work through the VisualStudio...
6
4174
by: Matt | last post by:
On my master page i have build 5 link buttons. First Page I receive ID and set the ID in master page Property so i can do the work with it. How ever when i clicked to second button i lose this ID....
13
2837
by: Casimir Pohjanraito | last post by:
I have a list of links, with a thumbnail image hidden(resized) next to the link. Complete html&css at end of this post. CSS for the link resizes the image on a:hover. All is good, except the...
0
2045
by: watashi | last post by:
Hello, This is on socket. i m using tcpclient and tcplistener task is when the "Active " button is pressed according to user choice tool should work as server or client. when "Inactive"...
1
3147
by: theJonster | last post by:
Hi I am embedding a swf object. I try: <script type="text/javascript" src="../scripts/swfobject.js"></script> <script type="text/javascript"> var flashvars = { ...
4
7337
nathj
by: nathj | last post by:
Hi, Well the title of the thread is the question. I have tried searching for this and after several days of getting nowhere with it I decided I would ask. So here's the deal. I am using Flash...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.