View Full Version : Linking Flash banners
jaxon
03-07-2007, 07:40 AM
We've written a home-grown banner rotation system for one of our sites. Some of the banners displayed are Flash files. There is no problem displaying them using the recommended <embed> and <object> tags. The script dynamically determines whether the file is a .swf, .gif, .jpg, etc. No matter what the file type, anchor tags (pointing to the advertiser's site) surround the code that displays the image or Flash file. Unfortunately, in Firefox the links work for gifs or jpgs but not for Flash. In I.E. and Safari the Flash links work fine. Any tips?
GeorgeA
03-07-2007, 01:32 PM
The easiest way would be to create another Flash movie and load the .swf file you have in to it. Then place the clickable code in there.
Have a look in the zip file I atached for an example.
Good luck!
jaxon
03-07-2007, 02:33 PM
Thanks -- so you are saying the link must be in the Flash file itself? Putting an anchor tag around it and/or tweaking the embed or object tags won't do it?
GeorgeA
03-07-2007, 02:39 PM
The link is a parameter that you put when calling the "wrapper" .swf file.(see the example I provided you in the previous post).
Get the .zip archive with the example,replace the .swf file with yours,and look in the .html page for the url,and change it to what you need :) .
Putting an anchor tag around it and/or tweaking the embed or object tags won't do it?
I don't think that's possible ,or at least I don't know a way to do it like that .
As I understand it, the wrapper swf will get all the clicks, preventing links in the wrapped swf from working.
Is there any risk the wrapped swf might still contain working links?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.