473,654 Members | 3,060 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.z a",
linkfromdisplay : "true"
};
var params = {
menu: "false",
};


swfobject.embed SWF("Clarence_F ord.swf", "divFlash", "468", "60", "9.0.0", "", flashvars, params);
</script>

<div id="divFlash">
<a href="http://www.google.co.z a" border="0">
<img src="468_60px_G S_F.GIF" /></a>
</div>[/HTML]

and i have tried:

[HTML]<object classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adob e.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=8,0,0,0"
width="550" height="400" align="middle">
<param name="movie" value="Clarence _Ford.swf">
<param name="allowScri ptAccess" value="always">
<param name="flashVars " value="link=htt p://www.google.com" />
<embed type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.adobe.com/go/getflashplayer"
width="550" height="400" align="middle" src="Clarence_F ord.swf"
allowscriptacce ss="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 2034
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
12622
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();") linkbutton.Attributes.Add("onClick", "MyFunction2();") How would i get this to work? (keeping in mind that I cannot combine MyFunction1 and 2 together) Is there another event other than onclick I can
1
1623
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 weeks ago all seamed to > work fine. > > Now only in some website if I try to open an internal link to a web > site, some pages will just start to open and remain blank it wont load
9
20737
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 such a thing? I also know lots of people hate it when you do that but this is for an application which requires IE5.5+ and there is no need for the user to view the links.
5
2464
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 am I missing ? Cheers mr N . . .
3
6269
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 development/test environment. Lately I've been testing the cases where my site encounters a fault to make sure everything is handled nicely. My only concern is that the smtpClient.send() is taking way to long to time out. I've already tried to...
6
4180
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. How would i keep this ID thru these 5 pages. so i wont lose this ID.. Master.page link1 link2 link3, public string AppID { get { return Label1.Text; }
13
2851
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 list resizes to accomodate the image, thus "tearing up" the list. In some browsers the thumbnail and resize effect goes back and forth real fast (try mouseovering the "another page" link). I tried constraining the list item height, but that doesnt...
0
2063
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" button is pressed the tool should stop working. My problem at first time every thing works fine(i.e both client and server).In server if i press "inactive" once and try to connect once again using "Active" , i m unable to connect.In the whole...
1
3151
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 = { linktarget: "_top",
4
7354
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 8, I have a movie that reads information from an XML file. The trick is that depending on a selection on my web page I want the move to read a different XML file. This sounds simple enough right? I thought so, pass the variables over to the...
0
8379
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8294
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8494
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8596
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1597
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.