I recently got a game sponsored on FlashGameLicense, and the inclusion of CPMStar adverts (and possibly another external API) was part of the sponsor's conditions. There doesn't seem to be much to the API - one FLA file and a bit of ActionScript - but is it at all possible for an extension to be created that replicates what it does?
The link to the API is on CPMStar, but as I don't know whether you can get to it without a login or not, I've also put it up on my Clickteam space:
Please login to see this link.
Please login to see this link.
I can provide my CPMStarContentSpotID if anyone wants to give this a go - I've been provided two, one for pre-game adverts and one for inter-level ones.
QuoteDisplay More
CPMStar Flash Advertising Preplay Integration KitInstructions for Actionscript 2 (Flash 6 through 8):
1) Create a 300x250 movieclip symbol within your library.
2) Drag the symbol into your loader where you want the ad to show and give it an instance name 'adBox'.
3) Copy the the actionscript code from frame 1 of the example file as2/adloadas2.fla into your loader.
4) Replace the CPMStarContentSpotID variable value with the content spot id assigned to you by CPMStar.
5) Placing a call to removeMovieClip(adBox) at the appropriate time in your loader will terminate the ad displayNote: In Actionscript 2 your swf's framerate should be between 12-30 fps or the ad will appear at the wrong speed.
Instructions for Actionscript 3 (Flash 9+):
1) Create a 300x250 movieclip symbol within your library.
2) Drag the symbol into your loader where you want the ad to show and give it an instance name 'adBox'.
3) Copy the as3/CPMStar subdirectory into the directory where your fla resides. (If your fla is in C:\test\my.fla, place it in C:\test\CPMStar)
4) Copy the the actionscript code from frame 1 of the example file as3/adloadas3.fla into your loader.
5) Replace the CPMStarContentSpotID variable value with the content spot id assigned to you by CPMStar.
6) Placing a call to removeChild("adBox") at the apropriate time in your loader will terminate the ad display and restore the framerateNote: In Actionscript 3 your swf's framerate will temporarily switch to match the advertisement while the ad shows.