Novice learning 'Starling' discussion

Yup, there were a couple of issues with that code, sorry about that.

Main issues were giving filter the name var filter, which conflicted with this DisplayObject’s own filter property. So renaming it to myFilter fixes that.

The other issue was how I referenced the Starling juggler. In the OpenFL version of Starling, we must use Starling.current.juggler, to correctly reference it.

I’ve successfully tested this now:

var myFilter = new ColorMatrixFilter();
movieClip.filter = myFilter;
	
var tintObject = { value: 0.0 };
Starling.current.juggler.tween(tintObject, 1.5, {
	value: 1.0,
	onUpdate: function() {
		myFilter.tint(0xFF0000, tintObject.value);
	}
});