Aphrodite
"It is not functon.call but function.call (don't forget the "i")"
I misspelled it in the forums by accident, I didn't actually misspell it in the C2 editor.
This is the javascript code I'm trying to imitate using browser execute javascript (not including the comments):
fgl.inApp.initiateUnlockFunction(
function(){
// The 'FULL VERSION!' text appears:
this.updateMenu();
},
function(){
// The unlock was canceled, the user didn't pay, or some other
// failure happened. Let's just refresh the menu to be sure it's up
// to date:
this.updateMenu();
}
);
Instead of this.updateMenu(), I would do a function call to a function in the C2 editor functon.call("q") or change the value of a global variable.
If I could either one of those things then it would have worked out.
This is the javascript code with no comments, it might be easier to read:
fgl.inApp.initiateUnlockFunction(
function(){this.updateMenu();},
function(){this.updateMenu();}
);