We help IT Professionals succeed at work.

how to create a link on a flash object?

hammadraza asked
Last Modified: 2010-04-09
I had inserted a flash object in table. i want that when i click that flash object a new window should be opened. i know the code for opening new window but i can't be able to convert falsh object into a link. below is the code if it can explain the senerio...

<TD width="496" align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="50%" height="50%">
            <param name="movie" value="flash/webservice5.swf">
            <param name="FlashVars" value="chartId=1">
            <param name="SCALE" value="exactfit">
            <param name="QUALITY" value="high">
            <embed src="flash/webservice5.swf" width="50%" height="50%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit">
Watch Question

Top Expert 2005

I think you might have to build the link into your flash movie.


but i have the senerion in which i can't do this because when the the flash movies will be clicked a new window will be opened containing the full size flash movie. if i create a link inside the flash movie then it will also work when the movie is in full size which i do not want. so i can't create link inside flash movie. any other suggestion??????????
Top Expert 2005
This one is on us!
(Get your first solution completely free - no credit card required)

Ok well im not sure if this will work witht he flash loaded or not but you can try using an html layer and then adding the window.open('page.html','_blank');

Do like the following NOTE: Some editing will be required on your part
Dreamweaver makes this very simple however if you have to do it by hand it shouldnt be to complicated.

replace "yourpage.htm" with where you want it to go to when clicked.

<div id="MyLayer" style="position:absolute; left:0px; top:0px; width:250px; height:250px; z-index:1" onclick="window.open('yourpage.htm','_blank');"></div>

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.