AdSpeed Logo
High Performance Ad Server
Plan starts at $9.95 per month

Help Center > Working in AdSpeed > Technical

How can I serve expandable or rollover Flash ads?

Expandable ads can occupy a smaller area (eg: 728x90) and once an action is activated, it could expand over the content to a larger area (eg: 728x240). You can serve expandable/roll-over ads within our system following these instructions:

Prepare the Flash file

Since this technique requires the Flash file to call an external JavaScript method, you need to have access to the source file (.FLA) and add the following. You need to adjust to the appropriate events for the creative (eg: on click/release or on rollover/rollout). The following example is for 728x90 expandable to 728x240 upon a mouseover event:

Create a RichMedia/HTML ad

After you have the Flash file ready, you can enter them into our system as a RichMedia/HTML ad (choose this type when you create a new ad). For this type, you can define the size, which is the smaller size before expanding, 728x90 in our example. The Flash will call the JavaScript code to resize the container upon user interaction. You might need to adjust the JavaScript code for vertical or horizontal expansion. The destination URL should be included in the clickTAG parameter and our system will automatically track clicks. Once the ad is created and to generate the serving code, you need to choose the JavaScript-only serving code.

Sample Code

  • FLA source code: expandable-ad-300x250.fla
  • SWF file: expandable-ad-300x250.swf
  • Sample ad 300x250 expands to 300x450 upon rollover served live by AdSpeed:

Troubleshooting Tips

  • You need the Flash served within window mode (opaque or transparent) so it will not lay-over other content
  • If multiple expandable on a single page, you need to use distinctive DIV containers so they are not in conflict with each other
  • The default value for "allowScriptAccess" has changed since Flash 8. You need "allowScriptAccess" to be "always" so that the event will call the JavaScript methods.
  • Since we set wmode to "transparent", if your Flash file has a transparent background, the CSS for the container can set a specific background color.
Was this information helpful? Yes / No

Other articles in Technical

Cannot find an answer for your question? Ask our Customer Care team

Related articles

Client Login

Promotions

[May 13, 2008] Get 50% off when paying yearly - Get 50% discount of regular price when you [read more]

Testimonials

"After searching for weeks, I found the most reliable ad server around, with great prices.I am not a technician, just a businessman, so for that reason the support and control panel was designed for me. It's great. Thanks AdSpeed, you really do care."
-Peter Amador

i

Quick Poll

What do you like best about AdSpeed?





 
Support  |  Contact Us  |  Sitemap  |  Careers
Copyright © 2000-2008 AdSpeed™. All rights reserved. Privacy Statement | Terms of Service