|
-
Trainee coder
[RESOLVED] [HELP] GameJacket, work damn it!
Hey again,
Basically, I'm trying out gameJacket instead of MochiAds to see which one is better, but at the moment I'm having a lot of trouble implementing the ads into my game.
The problem: When I get the game approved (admin approved) the game loads the ads fine, but when it's supposed to gotoAndStop() to the 'menu' frame (after the ads are finished), I get a blank screen. My menu music plays (which suggests that it is moving to the menu frame, since the music only activates on this frame) but otherwise there's no on-screen activity as there should be.
It's so hard to test this 'cause I can only properly run their code when in their testing browsers (and only after it gets approved which takes FOREVER); local testing isn't allowed. So I strip the game of all GJ code, and run it, and IT WORKS (as it should)! This suggests to me that it's a problem with the addition of the GJ ad code.
Here's some code I'm using: On Frame #1:
PHP Code:
#include "GameJacketAS2.as" trace("at #1"); function security_ok() { _root.gotoAndStop(2); trace("security pass"); } function security_fail() { trace("security fail"); } // Stop the playhead to prevent bumping into any other parts of the game stop();
On frame #2:
PHP Code:
function gotoGame():Void { _root.gotoAndStop(3); trace("play game"); } // Create a call to the GameJacketSec to display an advert
// Firstly create an object to hold all of our options var adOptions:Object = new Object();
// Add a reference to this in our options adOptions.adDisplayObject = _root;
// Set the preferred background colour of the advert // The code below randomly selects a colour adOptions.bgColour = 0x264969;
// Set the alpha level of the background // 0 = fully transparent, 100 = Solid colour adOptions.bgAlpha = 80;
// Pass in the name of the function to run when the advert is complete // An end function must be entered adOptions.endFunction = gotoGame();
// Call The Ad showAd(adOptions);
...and frame#3 is the main menu
The reason why I'm posting this here is 'cause the gameJacket support is practically non-existant, and I need some help ASAP (the game needs to be released as soon as it's ready, which should be now!). I realise most of you guys use mochiAds, but I know at least the GamingYourWay dudes use GJ so maybe you guys can tell me what's going on?
So yeah, this is pretty damn urgent, and so any help at all would be appreciated.
Viza.
Last edited by Viza; 12-24-2008 at 01:04 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|