how to make HTML link with swf object?

  • i_am_dhaval
  • Proficient
  • Proficient
  • i_am_dhaval
  • Posts: 263
  • Loc: INDIA

Post 3+ Months Ago

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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm not clear on what you are after. Do you want the swf to open a new page when someone clicks it?
  • i_am_dhaval
  • Proficient
  • Proficient
  • i_am_dhaval
  • Posts: 263
  • Loc: INDIA

Post 3+ Months Ago

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
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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. }
  • i_am_dhaval
  • Proficient
  • Proficient
  • i_am_dhaval
  • Posts: 263
  • Loc: INDIA

Post 3+ Months Ago

in my code what line i add?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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?
  • i_am_dhaval
  • Proficient
  • Proficient
  • i_am_dhaval
  • Posts: 263
  • Loc: INDIA

Post 3+ Months Ago

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
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 12 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.