back to home
back to home
back to home  
TECHNOLOGY SUPPORT    
 
 
    General Guidelines:
If you are building an expandable Leaderboard banner for ESPN.com, please see the Flash Construction Guide.

- Steps for Inserting the ActionScript code.
- Clicktag ActionScript code.
- Multiple links/clicktags within one file.
- Additional aspects to consider.

    STEPS FOR INSERTING TRACKING ACTIONSCRIPT CODE (below):

1. Create a layer and name it "click layer". Move this layer to the very top of all the layers.
2. Draw a box, the exact dimensions of your banner (728x90, 160x600, 468x60), in neon green, so you can see it easily, and then conver it to a button symbol by clicking on it and then navigating to "modify" (top menu) and save it as a button called  "click button".
3. Make sure the button symbol is on the first frame of the timeline and make sure it is there for the entire timeline.
If you need to place it further, use the Properties toolbar and type in "0" into both the X & Y fields to line it up.
3. Click the button on the workspace.
4. Open your actions palette.
5. Paste the actionscript "clicktag" code below (in blue) into the actions palette box.
6. Save your flash file.
7. Click on your button and within the "Properties" palette, select "Color", "Alpha" and set the % to zero "0".
8. Export your file as a .swf.
If you are constructing an expandable Leaderboard banner for ESPN.com, please see the Flash Construction Guide instead.


- Steps for Inserting the ActionScript code.
- Clicktag ActionScript code.
- Multiple links/clicktags within one file.
- Additional aspects to consider.



CLICKTAG ACTIONSCRIPT CODE:

Click-through functions must use the "Get URL" command. The action script code needed for the button layer in your Flash file should look exactly as it is below. The revised action script below simply checks to make sure that "http:" is contained within the URL we pass into it.

Note: Spell clicktag using only lowercase letters.
Note: Do not insert your URL where the "http:" is below.

on (release) {
if (_level0.clicktag.substr(0,5) == "http:") {
getURL(_level0.clicktag, "_blank");
}
}


- Hard coded URLs are not allowed to be passed via the "Get URL" action.
- Current resources: http://mediakit.go.com/shared/flash_guidelines.html




MULTIPLE CLICKS (WITHIN ONE BANNER):

If you have several url’s that a banner will drive traffic to, use the same clicktag code as above, but for each different clicking url, utilize a different name for the clicktag - example below. Essentially, you just need to use a different clicktag so our system can react accordingly:

url1 – clicktag
url2 – clicktag2
url3 – clicktag3
url4 – clicktag4

Tip: When using multiple clicktags, be sure to designate each clickable area with a button of its own and make sure that you don't overlap buttons.