clickTag using ActionScript 3

/ Published in: ActionScript 3
Save to your folder(s)

1. Create button that covers the entire ad.
2. Create an instance of the button on the main timeline and name it "clickTag_bn" in the properties palette.
3. On a new layer add ActionScript to the timeline as follows:

Copy this code and paste it in your HTML
  1. clickTag_bn.addEventListener(MouseEvent.CLICK, onMouseClick);
  2. function onMouseClick(event:MouseEvent):void {
  3. navigateToURL(new URLRequest(clickTag), “_blank”);
  4. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.