00:00
00:00
Newgrounds Background Image Theme

GMan2006i just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

In game ads 2014-03-03 15:01:42


Hi, I would like to place an ad in a game I am developing in AS3. I was searching the site and understood how to add and connect the Flash API. I also read that to add an ad I need to use

import com.newgrounds.components.*;
var flashAd:FlashAd = new FlashAd();
addChild(flashAd);

but I am not exactly sure where to put this. Do I put this in a preloader? Is there a simple tutorial or a template available? Would be much appreciated :)

Response to In game ads 2014-03-03 16:46:30


At 3/3/14 03:01 PM, B6ka wrote: but I am not exactly sure where to put this. Do I put this in a preloader? Is there a simple tutorial or a template available? Would be much appreciated :)

Put it wherever you want it to go, it doesn't have to go in a specific spot. Most people put it in the preloader or main menu.