how to make HTML link with swf object?

  • i_am_dhaval
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 263
  • Loc: INDIA
  • Status: Offline

Post October 27th, 2009, 4:37 am

here is my code..

i need to add link in .swf file

what is the error in my code?

HTML Code: [ Select ]
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' id='simplemovie1' ALIGN='' style="width: 187px; height: 69px"> <param name='movie' value='home_add/1-1.jpg'> <param name='quality' value=medium> <param name='bgcolor' value=#FFFFFF> <param name='wmode' value='transparent' /> <embed src='../home_add/1-1.jpg' quality=medium swliveconnect='true' bgcolor=#FFFFFF name='simplemovie1' align='' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'> </embed></OBJECT>
Moderator Remark: please use [code] tags to surround your code. Thanks
http://www.digitalmirrorsolution.com | http://www.cosmeticsurgerytechniques.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 27th, 2009, 4:37 am

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post October 27th, 2009, 5:01 am

I'm not clear on what you are after. Do you want the swf to open a new page when someone clicks it?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • i_am_dhaval
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 263
  • Loc: INDIA
  • Status: Offline

Post October 27th, 2009, 5:03 am

when i upload thee swf file then user will click the .swf file and and website link will be open..right now link is not coming

like we see animated google adsense ad then user click on it then site is open
http://www.digitalmirrorsolution.com | http://www.cosmeticsurgerytechniques.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post October 27th, 2009, 5:10 am

Easiest way I think would be to just make a transparent button layer over each Flash movie, and make the hotspot the width and length of each movie.

Then for your button action use
ACTIONSCRIPT Code: [ Select ]
on (release) {
getURL("http://www.site_i_want_to_link_to.com");
 
}
  1. on (release) {
  2. getURL("http://www.site_i_want_to_link_to.com");
  3.  
  4. }
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • i_am_dhaval
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 263
  • Loc: INDIA
  • Status: Offline

Post October 27th, 2009, 5:13 am

in my code what line i add?
http://www.digitalmirrorsolution.com | http://www.cosmeticsurgerytechniques.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post October 27th, 2009, 5:17 am

You don't need anything but the basic HTML code. You add the hyperlink to the Flash movies themselves. I'm not even following why you have the jpg images in your code anyway.

Do you have the original FLA files to edit?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • i_am_dhaval
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 263
  • Loc: INDIA
  • Status: Offline

Post October 27th, 2009, 5:20 am

in admin panel there is 2 option user can upload jpg or swf advertise ..so user can have add hyperlink of the site..thats why i am telling what is wrong with my code?

i hope you help me
http://www.digitalmirrorsolution.com | http://www.cosmeticsurgerytechniques.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post October 27th, 2009, 6:14 am

I've never done it the way you want to, but what I'm pretty certain will work would be to put a transparent 1x1 .gif in a div and layer it over your flash object (also putting your flash in it's own div) - and then make the .gif a hyperlink. Then use CSS and use positioning and z-index to layer the transparent gif over the flash. Make the width and height of the gif the same as the flash movie. And make sure wmode is set to transparent or opaque. I don't have an exact code example for you, but that is how you would do it.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.