Hi - so I have a weird catch22 happening - I’m trying to build a game for iPhone in javascript. iPhone requires that you declare your functions as variables (I think), like this:
var myFunction = function(){ };
but in order for iTween’s “oncomplete” functionality to work, the function must be declared like this:
function myFunction(){ };
How do I get these two things to play nicely together. This is what one of my itween functions looks like:
iTween.MoveTo(lighter,{"y":-.8, "z":-.4, "time":1,"easeType": "easeInOutQuad","oncomplete":"lighterEnable"});