作者:zjy135781012 | 来源:互联网 | 2023-05-17 18:45
IfIhaveamovieclipthathasaclassassignedtoitandIchangeapropertyofthatmovieclipinc
If I have a movieclip that has a class assigned to it and I change a property of that movieclip in code, it seems that the property can no longer be tweened on the timeline.
如果我有一个分配了类的动画片段并且我在代码中更改了该动画片段的属性,则似乎该属性不能再在时间轴上进行补间。
For example, if my class sets this.x = 100, and later on the timeline I tween the position of the object, that timeline tween will not occur.
例如,如果我的类设置this.x = 100,稍后在时间轴上设置对象的位置,则不会发生该时间轴补间。
Changing either scaleX or scaleY property also seems to stop timeline tweens from happening.
更改scaleX或scaleY属性似乎也会阻止时间轴补间发生。
Has anyone else experienced this, and if so, is there a way around it?
有没有其他人经历过这个,如果有的话,有没有办法解决它?
2 个解决方案