Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Newbie to Flash - need help with creating a click tag banner

$
0
0

Hi all. Completely new to Flash - have Flash CS6.

 

I have successfully created an ad banner with an embedded link. Now, I need to take the same ad banner and create a clicktag. The code I have used for the "embedded" banner is the following:

 

import flash.events.MouseEvent;

import flash.net.URLRequest;

circle.addEventListener(MouseEvent.CLICK, clickcircle);

function clickcircle (event:MouseEvent):void {

    var myURL:URLRequest = new URLRequest ("http://www.url.com");

    navigateToURL (myURL);
}

 

As I stated, that works great.

 

I have been told by the owner of the site where the clicktag banner will be going, to use the following code:

 

   on (release) {

          if (clickTAG.substr(0,5) == "http://www.url.com") {

              getURL(clickTAG, "_blank");

          }

      }

 

But that doesn't seem to worl. I can export the banner, but if I click on it, it doesn't bring me anywhere. So, I guess the first Q is - is that the entire code I need? Or do I incorporate that somehow to the old code I had?

 

I was driven to this page:

 

http://support.google.com/dfp_sb/bin/answer.py?hl=en&topic=13160&answer=79268

 

But that's not really helping me - I guess b/c I am so new this that I dont really undertand all of that.

 

So, I was hoping someone would be kind enough to help me out here.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>