Is MindJoltAPI.ad.showPreGameAd a Preloader ad, or do you have to make your own preloader??

46 views
Skip to first unread message

NipponMonkey

unread,
Sep 29, 2010, 12:42:35 PM9/29/10
to MindJolt Development Talk
What is the best way to use the MindJoltAPI.ad.showPreGameAd ads???

If I put it in the main class, then it seems to start to ad after the
game is completely loaded.

Should I integrate the MindJoltAPI.ad.showPreGameAd into a preloader
somehow, or should I make my own preloader then show the ad
afterwards??? - This doesn't seem ideal to me!

Does anyone have a example of the best way to make the
MindJoltAPI.ad.showPreGameAd ad work as a proper preloader ad?

A better example of the MindJoltAPI.ad.showPreGameAd method and how it
should be used for loading the game correctly would be nice.

Cheers

NipponMonkey

unread,
Sep 29, 2010, 4:23:26 PM9/29/10
to MindJolt Development Talk
I tried adding the pre game ad to a preloader, I altered the default
preloader in FlashDevelop, and it worked fine locally, but failed
with:
"ReferenceError: Error #1065" when uploaded. This was when the
preloader was trying to add the main game class, after the whole file
had loaded. So I couldn't get it to work. Maybe it's something to do
with a MJ wrapper around my swf or something???

Now I'm getting bugs with the upload page on MJ again. Everytime I try
to upload a new version I keep getting my old mochi version of the
game after my new version is uploaded. This has nothing to do with
cache issues on my part as previously the uploaded file loaded
correctly, and I'd cleared my cache before every upload.

Uploading and testing the API is getting a little frustrating...

I removed the API's pre game ad call from my preloader to see if the
normal preloader would work when in the testing area online, but I
can't get to test that version of the game as I can only get the older
version of the game now!!!

NipponMonkey

unread,
Sep 29, 2010, 4:37:47 PM9/29/10
to MindJolt Development Talk
I've just taken a look at the code that calls the swf from the MJ
servers, and there is a counter at the end of the URL like: 'http://
devstatic.mindjolt.com/static/flash/QX/SOME_CODE.swf?v=XX'

I think the uploads were showing me the correct version of the game
after the upload had completed until the version got to more than 9 or
10. Maybe there is some bug with the version query '?v=XX' when the
version number reaches double figures???

I wanted to get this update done today, but as I can't test that
everything is working correctly on the site, I'll have to wait...

NipponMonkey

unread,
Sep 30, 2010, 6:29:22 AM9/30/10
to MindJolt Development Talk
I got the preloader working. I had a problem with overriding the
default start and finish ad functions. They were stopping the movie
clip but not starting it again correctly so the preloader wasn't
working correctly.

The upload bug seems to be fixed too now ^ ^
Reply all
Reply to author
Forward
0 new messages