Research Surveys
Flash Guidelines
Rich Media Partners


Overview:


Flash technology is used for interactive vector graphics and animation for the Web. Web designers use Flash to create resizable and extremely compact navigation interfaces, technical illustrations, long-form animations, and other dazzling effects for their site. They can be reached at http://www.macromedia.com.




Requirements:

 

- Flash SWF file needs to be exported as version 9.0 or below.
- A default GIF will be served to browsers that do not have a compatible Flash Plug-In.
- Frame Rate: 18 frames per second.
- Third party served Flash ads must be have a wmode set to "opaque" in their object/embed code.
- Sounds permitted; must be user initiated, on click.
- All creatives must be designed with a solid background color to avoid unwanted color conflicts with the displaying page.


File Organization/Naming:


The flash files are the primary focus of your campaign. The gif/jpg files are utilized as back-up for users who may not have flash installed and/or functioning properly. This allows those users to view something vs. nothing while on the site.

When it is time to export your files, please name each in the following manner:
sponsor_campaign_lengthxheight.swf

1. Primary (flash): sponsor_campaign_728x90.swf
2. Secondary (gif/jpg): sponsor_campaign_728x90.gif/jpg

Note: Your flash (SWF) file needs to be version 9.0 or below.


Flash < 8 ActionScript 2.0

    on (release) {
    getURL (clickTag, "_blank");
    }


ClickTag's: Flash 9.0 or below - built using ActionScript 2 or below


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. Do not insert your URL where the "http:" is below. This revised action script simply checks to make sure that "http:" is contained within the URL we pass into it.

Notes: Spell clicktag using only lowercase letters.
Hardcoded URLs are not allowed to be passed via the "Get URL" action.

    on (release)
    {
    getURL(_level0.clickTag, "_blank");
    }

    For flash files with multiple clickable areas, we accept multiple clickTags as follows:

    clickTag (clickable area A)

    on (release)
    {
    getURL(_level0.clickTag, "_blank");
    }

    clickTag (clickable area B)

    on (release)
    {
    getURL(_level0.clickTag1, "_blank");
    }

    clickTag (clickable area C)

    on (release)
    {
    vgetURL(_level0.clickTag2, "_blank");
    }

    NOTE: clickTag is case sensitive
    Hard coded clickthrough URLs will not be accepted


The implementation is different for each version of Flash, please refer to Adobe documentation for specific instructions and syntax for using the clickTag variable and the getURL action.
http://www.adobe.com/resources/richmedia/tracking/
http://www.adobe.com/resources/richmedia/tracking/adserving_guide/
http://www.adobe.com/resources/richmedia/tracking/designers_guide/

This is updated action script based on security measures recommended by Macromedia. According to Macromedia, "The ActionScript...is verifying that the clicktag URL begins with "http:". This is an important security measure. If you do not take this precaution, a malicious HTML page could source your SWF and pass a clicktag URL that begins with "javascript:" or another scripting pseudo-protocol. If your ActionScript code were to call getURL with a maliciously crafted JavaScript URL, it would be possible for the site serving the malicious HTML page to obtain the contents of your HTTP cookies or perform other actions on your site's behalf."



ClickTag's: Flash 9.0 - built with ActionScript 3


Notes: myButton refers to the instance name of the button object. Spell clicktag using only lowercase letters. Hardcoded URLs are not allowed.

myButton.addEventListener(
MouseEvent.CLICK,
function():void
{
if (root.loaderInfo.parameters.clicktag.substr(0,5)=="http:")
{
navigateToURL(new URLRequest(root.loaderInfo.parameters.clicktag), "_blank");
}
}
);


Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored. A common method is to have an action layer which is where the above code would reside.

This is updated action script based on security measures recommended by Macromedia. According to Macromedia, "The ActionScript...is verifying that the clicktag URL begins with "http:". This is an important security measure. If you do not take this precaution, a malicious HTML page could source your SWF and pass a clicktag URL that begins with "javascript:" or another scripting pseudo-protocol. If your ActionScript code were to call getURL with a maliciously crafted JavaScript URL, it would be possible for the site serving the malicious HTML page to obtain the contents of your HTTP cookies or perform other actions on your site's behalf."



CPU Usage Guidelines:


Macromedia's Flash Player utilizes a computer's CPU (central processing unit) in handling all animation, masking, and computation contained within a Flash file. If a Flash file contains heavy amounts of mathematical computation for elements such as animation, loops, or timers, it will require a much greater percentage of CPU usage. As a result, the Flash file is forced to compete with other Flash files and other applications for CPU usage, which causes all Flash elements on the page to slow down significantly. There are several ways to help cut down on the CPU

usage your Flash file requires.

1. Limit the amount of "math-based" animation - animation which is controlled by mathematical-based action script. Another way is to limit or eliminate looping functions in action script. Looping functions are usually associated with timers. Masking and animated masking techniques can also require a large amount of CPU resources.

2. Estimate how CPU intensive your Flash file may be is to open the "Task Manager" (control+alt+delete) and view the "Performance" tab -- this gives a graphical estimate of CPU usage. With the Task Manager open, then open your swf file in the Flash player - you may see a spike as your Flash file is animating.


A small spike of 20-30% is normal; if your CPU Usage jumps up to 80-100%, the Flash file may need revising until it uses less CPU resources.

For more information on optimizing Flash files, see Macromedia's article, "Streaming and file optimization techniques for Flash Player".



Looping:


If you would like your banner to loop infinitely, just end your movie items all on the same frame and don’t use a stop frame at the end. Flash will automatically loop back to the beginning.

Recommendation: If you would like some time to lapse before replays, then add frames to the timeline for the items you would like to leave on the screen.

If you would like your banner to loop a specific number of times, use the following code: Arriving shortly.



Optimization:


Macromedia Resource



Video:


WDIG defines video as, but is not limited to, any .avi, .mpg, quicktime, .wmv or real media file that would typically be edited within a video editing program.

When these types of files are imported into Flash, they remain a "video" even though they are "displayed" through the Macromedia Flash Player in a banner. Banners that contain video or video components mixed with vector graphics are required to have play and pause buttons. This is to ensure our users with a consistent experience across our sites.