Flash ads to be served by Stamats (Buildings.com, Interiorsandsources.com and MeetingsFocus.com), require "clickTag" coding to be added to a Flash creative IN PLACE OF the client's click-through URL. Below is the encoding which can be copied directly to the creative to acheive this. Also, at the bottom of this file is coding which allows a creative to run for three loops, and then stop - our standard requirement. NOTE: ALL CODING, BELOW IS CASE SENSITIVE (particularly "clickTag")!!!!!!! ==================================== CODING BEGINS BELOW =================================================== /* * ADDING A BUTTON WITH CLICKTAG CODE * * The following code adds the DART clickTAG code to a movie * create a new layer at the top of your movie * INSERT > NEW SYMBOL * select BUTTON and name it - this opens the button's timeline * create a keyframe in the HIT frame (F6) * draw a rectangle (no stroke, any fill color) on the stage - same dimensions as ad, x,y position is 0,0 * click on Scene one to return to movie * Select the button layer * Drag button onto stage and position over movie * Select the button on the stage * open the actions panel * copy and paste the following code block */ on (release) { getURL(clickTag, "_blank"); } /* End of clickTag coding */ /* * CLICKTAG CODING USING ACTIONSCRIPT 3.0 * This is not "officially" supported by Dart, but they have given the following coding * guidelines for those wishing to use AS3.0: * * * */ Link_1.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent): void { var sURL: String; if ((sURL = root.loaderInfo.parameters.clickTag)) { navigateToURL(new URLRequest(sURL), "_blank"); } }); /* NOTE: * Please note that "Link_1" is a reference to the name of the button that you'd * create in your FLA file. You would need to change this to that name in order * to avoid syntax errors when publishing it to a SWF file. * * END OF CLICKTAG CODING FOR AS3.0 */ /* * LOOPING A MOVIE * * The following code loops a movie three times * add a keyframe to the last frame of any layer of the movie * open the actions panel * copy and paste the following block of code */ if (!loopCount) { var loopCount:Number = 0; } loopCount++; if (loopCount >= 3) { this.stop(); } /* End of LoopCounter Code */