Hi, I only got this clickTag code from GOOGLE themselves but is giving me some errors when I CHECK the AS.
URL REFERENCE: http://support.google.com/dfp_premium/bin/answer.py?hl=en&answer=1085684
(at the bottom of the page, choose AS3)
MyButtonClip.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent): void {
var sURL: String;
if ((sURL = root.loaderInfo.parameters.clickTAG)) {
navigateToURL(new URLRequest(sURL), "_blank");
}
The errors says:
Scene 1, Layer 'Layer 96`, Frame 1, Line 5 1084: Syntax error: expecting rightparen before end of program.
thank you