iTween oncomplete not firing?

Hey, so, I’m using iTween, but this one line won’t call its oncomplete hashtable parameter. I’m not getting any syntax errors either, and the function is called in other parts of the script with no problems. Any idea why? Here’s the call, and the function:

iTween.FadeTo(flameArray[activeFlame].gameObject, {"alpha" : 1, "time" : timeToFadeIn, "oncomplete" : "flameGenerator", "easetype" : "easeInOutQuad"});

function flameGenerator()
{
	print("hello?");
	var flameGrow = Random.value;
	if(flameGrow > .5 || activeFlame == 0)
	{
		fadeIn();
	}
	else if(flameGrow <= .5 || activeFlame == flameArray.length)
	{
		activeFlame--;
		fadeOut();
	}
}

the oncomplete target object is missing. you defined which function to call but not on what object :slight_smile: