Posted By

hotdiggity on 07/21/09


Tagged

actionscript flash 3 clickTag


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sweetbabyyoung
dubogii


clickTag using ActionScript 3


 / Published in: ActionScript 3
 

  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:
  1. clickTag_bn.addEventListener(MouseEvent.CLICK, onMouseClick);
  2. function onMouseClick(event:MouseEvent):void {
  3. navigateToURL(new URLRequest(clickTag), “_blank”);
  4. }

Report this snippet  

You need to login to post a comment.