embedding link in banner ad

Ask a Question related to Macromedia Flash Ad Development, Design and Development.

  1. #1

    Default embedding link in banner ad

    I'm new to Flash and I can't believe that I can't find thissue anywhere. I have a banner ad and I'd like to make the whole ad link to a URL. How do I do this? Thanks for your help!
    DebK404 Guest

  2. Similar Questions and Discussions

    1. Showing the email link from a database link
      Hi Does anyone know how to have an email link show when showing the databse info in a repeating table. Here is the link...
    2. Skyscraper Flash Banner ad - Help me link it
      I am sorry that I am even asking this question. I am new to flash and have figured out how to make the banner ad that I would like to post to a web...
    3. preserve the link to a single Excel cell when updating link
      I want to import a single cell from an Excel spreadsheet into InDesign CS. Initially, I am placing a single cell into a text frame and get the...
    4. Has anyone seen the "Mad Mad House" banner or the Pizza Hut banner? [video]
      Has anyone seen these two banners anyplace? I've run into both of them on Yahoo and am desperately seeking a tutorial or any resources on how these...
    5. Want to link two different sites together via banner
      Hello can anyone help please. I created both my sites using dreamweaver, I had them both linked together (make changes to one and they are both...
  3. #2

    Default Re: embedding link in banner ad

    On Nov 26, 6:01 pm, "DebK404" <webforumsu...@macromedia.com> wrote:
    > I'm new to Flash and I can't believe that I can't find thissue anywhere. I have a banner ad and I'd like to make the whole ad link to a URL. How do I do this? Thanks for your help!
    look at getURL in your Help files in Flash. That's probably what
    you're looking for if you just want to forward the user on to a link.
    Tifer Guest

  4. #3

    Default Re: embedding link in banner ad

    You'll need to make an invisible button and set it to go to your URL. To do
    this, create a new button and in the HIT frame place a keyframe and put a
    rectangle in it that is the same size as your banner. Leave the other states of
    the button blank. Then place it on the stage over your entire banner. It will
    look like a translucent teal rectangle. That will not show up when your banner
    is published. It's there as a guide.

    Give your button an instance name. For the purpose of demonstration, let's say
    you name it "inv_btn".

    Then create a layer called actions or as or actionscript... whatever makes
    sense to you.. and lock it. This is where your actionscript will go and locking
    it will prevent you from inadvertantly placing anything on it. Select that
    layer and open your actions panel. If you are using actionscript 2.0, type:

    inv_btn.onRelease = function(){
    getURL("http://www.yourdomain.com", "_blank");
    };

    If you are using AS 3.0, let me know.

    aniebel Guest

  5. #4

    Default Re: embedding link in banner ad

    Hi there - Yes, I'm using Flash CS3 so I guess that I have ActionScript 3.
    When I did what you explained though, I dropped the ActionScript down to the
    2.0.

    I was able to get the button in there. I put it on a separate layer. When
    you click the banner though nothing happens. I've got two different Flash CS3
    tutorial books and neither one covers this. I would have thought that this
    would be quite common.

    Thanks again for your help, Deb

    DebK404 Guest

  6. #5

    Default Re: embedding link in banner ad

    Ok - here's what I did now - using ActionScript 3

    named my invisible button instance "fusion_btn"
    Made a top layer called "action"
    In the first keyframe, I put:

    var fusion_url:URLRequest = new URLRequest("http://www.fusion2008.com");

    function fusion(event:MouseEvent):void
    {
    navigateToURL(fusion_url, "_blank");
    }

    fusion_btn.addEventListener(MouseEvent.CLICK, fusion);

    ***This still does not get the banner to click to fusion2008.com though.

    What am I doing wrong?

    DebK404 Guest

  7. #6

    Default Re: embedding link in banner ad

    Hi there. I just copied and pasted your code and it worked for me. Is your hand
    cursor showing up when you mouse-over the banner? If not, make sure your button
    does, in fact, have an instance name.

    BTW, using CS3 does not necessarily mean that you have to use AS3. In fact,
    most host sites will not allow banners that have been published for anything
    higher than Flash Player 7... which means no AS3. If you are in control of the
    site that is hosting the banner, you should have nothing to worry about,
    however.

    aniebel Guest

  8. #7

    Default Re: embedding link in banner ad

    Hi Amy,
    I dropped it back to AS2 and used your original code:

    fusion_btn.onRelease = function(){
    getURL("http://www.fusion2008.com", "_blank");
    };

    And.... it works!

    thank you for your patience.

    Deb

    DebK404 Guest

  9. #8

    Default Re: embedding link in banner ad

    You're welcome! Glad it worked out. :)
    aniebel Guest

  10. #9

    Default Re: embedding link in banner ad

    Hello,

    If I have an ad served by advertisers from CJ.com, would I use this same
    process for adding the html/javascript that is assigned to the ad I want to
    display on my stage area?

    Thanks,
    iCareCommunity

    icarecommunity Guest

  11. #10

    Default Re: embedding link in banner ad

    icarecommunity, yes, you would assuming their site is set up that way. You'll
    need to ask them what their specs are and if they prefer you to hard-code the
    landing URL into the button event-handler or do they want you to use a click
    tag. They may ask you to use a click tag if they are returning statistics to
    you or your client on click-throughs.

    aniebel Guest

  12. #11

    Default Re: embedding link in banner ad

    Aniebel,

    Thank you for replying back. We recently purchased the entire CS3 suite. The
    learning curve is going to take awhile but that's the fun part:)

    They are sending stats back to us so we have merged this in the ActionScript
    3.0 example but we are getting errors wanting the ) and the semi-colon:

    fusion_url:URLRequest = new URLRequest(""<a
    href="http://www.addomain.com/jl65ar-dfdfjdlskfjsdlfjdfovdf" target="_blank"
    onmouseover="window.status='http://www.addomain.com';return true;"
    onmouseout="window.status=' ';return true;">
    <img src="http://www.addomain.com/jdfoasidfjksdnerjn;fkjs" alt="addomain.com
    border="0"/></a>"");

    function fusion(event:MouseEvent):void
    {
    navigateToURL(fusion_url, "_blank");
    }

    btn1.addEventListener(MouseEvent.CLICK, fusion);

    icarecommunity Guest

  13. #12

    Default Re: embedding link in banner ad

    Are you sure the site will accept Flash Player version 9 SWFs? Most will not accept anything higher than version 7 which means you will have to use Actionscript 2.0, not 3.0.
    aniebel Guest

  14. #13

    Default Re: embedding link in banner ad

    Thank you for that information. I will try to merge the ActionScript 2.0 with the code I have from the advertiser.

    Thanks,
    iCareCommunity
    icarecommunity Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139