Actionscript 3

Load our ingame ad unit into an empty MovieClip (myIngameAd)

      
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("http://cdn.ad4game.com/300x250.swf?zoneid=10249");
myLoader.load(url);
myIngameAd.addChild(myLoader);
      
    

URLRequest Tokens

zoneid: Contact your Ad4Game account manager to get your ingame ads zone created!

Options

Ad open-target: default value is "_blank"
To change the Ad open-target to "_self", append the URLRequest string with &target=

http://cdn.ad4game.com/300x250.swf?zoneid=10249&target=_self

Actionscript 2

Load our ingame ad unit into an empty MovieClip (myIngameAd)

      
myIngameAd.loadMovie("http://cdn.ad4game.com/300x250.swf?zoneid=10249");
      
    

URLRequest Tokens

zoneid: Contact your Ad4Game account manager to get your ingame ads zone created!

Options

Ad open-target: default value is "_blank"
To change the Ad open-target to "_self", append the URLRequest string with &target=

http://cdn.ad4game.com/300x250.swf?zoneid=10249&target=_self

Sub IDs

We support up to 4 subids to be passed to our Ingame url: subid, subid2, subid3, subid4

Example


http://cdn.ad4game.com/300x250.swf?zoneid=10249&subid=YOUR_VALUE&subid2=YOUR_VALUE2&subid3=YOUR_VALUE3&subid4=YOUR_VALUE4

The subid values being passed into our Ingame will be available on the converiosn stats on our platform!

Text Ads Customization

Options

Background Color: default value is white "ffffff"
Title Color: default value is orange "F05A28"
Description Color: default value is black "333333"
To change these values, append the url with the following tokens: textad_bgcolor, textad_color1, textad_color2

Example


http://cdn.ad4game.com/300x250.swf?zoneid=10249&textad_bgcolor=990000&textad_color1=000033&textad_color2=007700

Preview

[Download source file (.fla)]
HTML Overlay Preroll Ads
Learn More
Ad4Game
MORE FORMATS