+ Reply to Thread
Results 1 to 6 of 6

Thread: Linking Flash banners

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    2

    Default Linking Flash banners

    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?

  2. #2
    What do I do with this ?
    Join Date
    Jan 2007
    Posts
    58

    Default

    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!
    Attached Files Attached Files
      To view attachments your post count must be 0 or greater. Your post count is 0 momentarily.

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    2

    Default

    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?

  4. #4
    What do I do with this ?
    Join Date
    Jan 2007
    Posts
    58

    Default

    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 .

  5. #5
    Junior Member
    Join Date
    Aug 2007
    Posts
    1

    Default

    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?

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default This sounds like an awesome technique

    I'm going to give it a shot.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts