从 CreateJS 事件侦听器函数访问 class 属性?

Access class properties from CreateJS event listener function?

我是 JavaScript 和 CreateJS 的新手。
这是我的代码:

var ClassName = function(){
this.mc = new createjs.MovieClip();
//...Add graphic to this.mc code
createjs.Tween.get(this.mc).to({scaleY:0, y:50},300).call(onTweenCompleted);
}
ClassName.prototype.onTweenCompleted = function(){
console.log(this.mc.y);
}

我的问题是当 TweenComplete 调用 onTweenCompleted 属性时 this.mc.y 无法访问。这里有一个错误:

Uncaught TypeError: Cannot set property 'y' of undefined

您应该在函数调用中添加一个范围,例如像这样:

createjs.Tween.get(this.mc).to({scaleY:0, y:50},300).call(onTweenCompleted, [], this);