clickTag using ActionScript 3

// Create button that covers the entire ad.

Create an instance of the button on the main timeline and name it “clickTag_bn” in the properties palette.

On a new layer add ActionScript to the timeline as follows:

clickTag_bn.addEventListener(MouseEvent.CLICK, onMouseClick);

function onMouseClick(event:MouseEvent):void {

navigateToURL(new URLRequest(clickTag), “_blank”);

}

Go to Source

This entry was posted in ActionScript and tagged , , , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?