AS3 Yahoo! clicktag button listener


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

used for yahoo! clicktags in as3


Copy this code and paste it in your HTML
  1. function getClickTag():String{
  2. for (var key:String in root.loaderInfo.parameters)
  3. if(key.toLowerCase()=="clicktag")
  4. return root.loaderInfo.parameters[key];
  5. return "";
  6. }
  7. clicker_mc.addEventListener(MouseEvent.CLICK,function():void {
  8. navigateToURL(new URLRequest(getClickTag()),"_blank");
  9. });

URL: http://adspecs.yahoo.co.uk/ynetwork/300x250

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.