WTWH Media Marketing Lab WTWH Media Marketing Lab
  • Blog
    • Social Media
      • Facebook
      • LinkedIn
      • Pinterest
      • Twitter
      • YouTube
    • Marketing
      • Content Marketing
      • Email Marketing
      • Online Marketing
      • Search Marketing
      • SEO
    • WTWH News
      • Engineering Marketing Resources
      • Foodservice, Retail, and Hospitality Marketing Resources
      • Healthcare Marketing Resources
  • Media Guides
    • Design Engineering | Robotics | R&D
      • Design World
      • EE World Online
      • Engineering.com
      • EV Engineering
      • Fluid Power World
      • R&D World
      • Robotics Network
      • Control Engineering Media Guide
      • Consulting-Specifying Engineer Media Guide
      • Plant Engineering Media Guide
    • Life Sciences
      • Medical / Life Sciences
      • Pharma Media Guide
    • Retail | Hospitality | Food Service
      • Club + Resort Business Media Guide
      • CStore Decisions
      • FSR Media Guide
      • PMQ Media Guide
      • QSR Media Guide
      • Restaurant Franchising Opportunities
      • Women in Restaurant Leadership
    • Renewable Energy
      • Solar Power World
      • Windpower Engineering & Development
  • Print Ad Info
    • Print Ad Portal
    • Print Ad Specs
  • Resources
    • Subscribe to Our Newsletter
  • Contact Us
    • General Request
    • Job Opportunities
    • PR Submissions
    • Subscription Services
    • DesignFast Data Request
  • Request Proposal
  • Clara Reporting
  • May 19, 2014
  • Marshall Matheson
  • 2 Comments
  • 1226 Views
  • 0 Likes
  • Tutorials, Web Tech

clickTAG and Loop Limit for Flash Creative ActionScript 3

In this video tutorial I’m showing how to assign a clickTAG and loop limit to Adobe Flash creative banner / display ads under ActionScript 3. A clickTAG can be modified somewhat depending on specific ad servers, so this tutorial is for WTWH Media ad server specification, but should apply generally for most cases.

What is a clickTAG? The very short story is its a piece of code that tells an ad server that it (the ad itself) was clicked – so its simply a way to track clicks with Flash files. When creative is loaded into an ad server, and then that creative is displayed on a website, a clickTAG ensures that a Flash file registers clicks and sends user to the correct URL. With Flash files no URL is coded to the creative. The URL is provided to us separately to load with the Flash files. The clickTAG then references the URL provided and sends the user along to the correct destination.

A loop limit is a way to tell the Flash file to run through its course, but to then stop animating after X times. We have a loop limit requirement of 3X, so that means the ad should start, run through the creative, return to start and do that no more than three times before stopping on a final frame for display. This is generally to keep visual noise lower on our network of sites, but to also encourage quick clean calls-to-action from our advertisers for best results if using animated / looping creative.

In Flash you can set your ActionScript to different versions of the code for your project. A common mistake is later versions of Adobe Flash are set to ActionScript 3 and clickTAG methods for ActionScript 2 are implemented. You can set code to version 2 in later version and use the older method for adding in the clickTAG properly. If your looking for the tutorial on clickTAG for ActionScript 2, you can find that here.

Here is the clickTAG code for ActionScript 3:

import flash.events.MouseEvent;
import flash.net.URLRequest;
 
buttonOrObject.addEventListener(
    MouseEvent.CLICK,
    function(event: MouseEvent) : void {
        flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    }
);

Here is the Loop Limit code used for this video tutorial:

if(!this.loops_played) this.loops_played = 1;

if(this.loops_played >= 4) gotoAndStop(); else play();

and use this for last frame for Loop Limit:

this.loops_played++;

——–Video Here

Tags:
clickTAGFlashloop Limit
Prev PostBalancing Engineering Lead Quotas with Lead Quality
Next PostSocial in 60 Seconds: How to Combat the Facebook Reach Decline
Related Posts
  • Why ChatGPT Won’t Replace B2B Marketers June 28, 2023
  • blockchain tech for marketing
    How Blockchain Could Make Waves Within Digital Marketing August 29, 2019
2 Comments
  1. Log in to Reply
    Nick November 12, 2014

    This works for me until I add the clickTAG code. After I add it, the loop continues and doesn’t stop after 3. I’ve repeated the tutorial 3-4 times with a new document and can’t figure out what I’m missing. Any suggestions? I’m using CS5, Actionscript 3.

    • Log in to Reply
      Marshall February 9, 2015

      Be sure clickTAG is assigned to the object separate from the script layer that contains the loop limit.

Leave a Comment Cancel Comment

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WTWH Media LLC, an 10x Inc. 5000 honoree, is an integrated b2b media company serving the electronics, design engineering, hospitality, life sciences, renewable energy, retail and robotics markets with more than 80+ web sites, 12 events, 9 branded publications and custom digital marketing services. More at WTWH Media

WTWH Media Brands

  • Club + Resort Business
  • Convenience Store Decisions
  • DesignFast™
  • Design World
  • EE World Online
  • Fluid Power World
  • FSR®

 

  • LeadLift™
  • MassDevice
  • PMQ
  • QSR®
  • R&D World
  • Solar Power World
  • The Robot Report
  • Windpower Engineering & Development
info@wtwhmedia.com Email Us
888-543-2447 Phone
1111 Superior Avenue, 26th Floor Cleveland, OH 44114
Copyright © 2024 · WTWH Media, LLC. All Rights Reserved | AI Policy | Privacy Policy