Adding a Clickthrough Button to a Flash File
To track clickthroughs a SWF creative must have a button to register the click and route to the appropriate tracking URL. To know which URL to route to the SWF uses a special variable called clickTAG. The URL for this is then supplied by the ad server. The best way to implement a click variable is to place a button across the whole creative and to place this on
the top layer.
How to add a clickTag Button to a Flash File
- Select the topmost layer in the SWF file
- Click the Add Layer Button
- Select the newly created layer
- Select the rectangle tool, make sure that a fill is selected and draw a box over the whole
of the banner - Select the box and then select convert to symbol (Modify > Convert to Symbol)
- Name the symbol and select a Type of Button, then click OK
- Double click on the button, this will open the button symbol for editing
Drag the first frame from Up to Hit
This makes the button an invisible detection area
Click on Scene 1 to return to the main timeline
You will now see the button as a transparent cyan rectangle covering the ad - Select Window > Actions from the menus
- Type the following code into the Actions for the button
This tells Flash to open the URL supplied by the ad server (clickTAG) into a new (“_blank”) window when the user presses and the releases the mouse on this button