2 Replies Latest reply on Aug 27, 2015 11:08 AM by rezun8

    Banner-code

    Anders Vikhult Level 1

      Hi

      I have worked in Flash CS 6 until now, because I have not had any intention to learn AS3. Now, I need to convert a banner to CC, and I want to put a simple clickTAG-code in a button over everything. I have found a AS3 code that looks like this:

       

      if (root.loaderInfo.parameters[”clickTAG”]) { var clickTAG:String =

      root.loaderInfo.parameters[”clickTAG”];

      }

      click_btn.addEventListener(MouseEvent.MOUSE_UP, getUrlfunction); function getUrlfunction(ev:Event = null): void {

      ExternalInterface.call(”window.open”, clickTAG,”_blank”); }

       

      When I paste the code on the button it lands in frame 1. And I don't understand what to do with the code. I am completely lost. Can anyone help med?

      Dropbox - Natvark 480x400 CC.fla

       

      Anders