Create a new layer (Insert > Timeline > Layer) above all other layers, name it "click" - and select the first keyframe in that layer.
Using the Rectangle tool, draw a rectangle encompassing the entire area of the ad.
Convert the rectangle to a button.
[using the Selection tool, right-click and select Convert to Symbol. Type a name ["clicktag"] for the symbol and select the Button behavior. Click "ok".]
Double-click the rectangle [go into symbol editing mode] to edit it, and drag the Up keyframe to the Hit keyframe.
Go back to the main timeline and select the button on frame one of the "click" layer. Open the Actions panel [If the Actions panel is not open, choose Windows > Actions (F9)].
Note: Make sure "Actions - Button" displays at the top of the panel.
Copy and paste the following code into the ActionScript field:
To use multiple click-tracking URLs (up to 5), number the variables sequentially, using the exact naming shown below:
URL #1
clickTAG
URL #2
clickTAG2
URL #3
clickTAG3
URL #4
clickTAG4
URL #5
clickTAG5
Export as you normally would …
Loop Cap
Frame 1:
Next to last frame:
Last Frame:
Change numbers in script on last frame to affect number of loops and loop start frame.