It's been about 10 years since I've had to build anything in Flash, and I'm feeling like a complete noob, hoping someone can help.
I've created my flash ad, and unfortunately did so in AS3. I need to add a ClickTag for doubleclick ad serving. I've created a new layer with a 0% alpha rectanger, converted to a button, and named "btnClickTag". I've also turned on linkage, and given it a class of "btnClickTag". I also added a keyframe to the end of my timeframe so the layer extends the whole animation (not sure if this is needed). After hitting multiple 1120 errors, and reading through forums I've come up with the following actionscript:
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
btnClickTag.addEventListener(MouseEvent.CLICK, tagClick);function tagClick(event:MouseEvent):void{navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");}
I am now getting the following error, and can't seem to find a solution. I'm not an engineer so I'm sure I'm mising something simple. I've also uploaded into doubleclick and can see the clicktag not working properly.
| Scene 1, Layer 'clicktag', Frame 1, Line 5, Column 13 | 1061: Call to a possibly undefined method addEventListener through a reference with static type Class. |
Thanks!
G
Hi G,
pls look in the Flash Ad Dev section of the forum here for AS3.0 ClickTag instructions. If your still having issues after that feel free to IM me and I'll do my best to help you out.
Cheers
R