asdf131 需求大概https://ask.layabox.com/question/8302, , 1,用startDrag来滑动, 我想通过sprite的x属性改变时来助理其它层的移动。然而sprite的x属性改变没有办法获取到; 2,想定义一个sprite来重写它的x属性(并在哪里处理其它层的移动),然而重写属性x不知道什么写(下来的例子是想重写x属性的)附件:T22_DragPicture.rar T22_DragPicture.rar0B
asdf131 Monica 这个问题倒是解决了,谢谢你了这样才行! public get x(): number { return this._x; } public set x(value: number) { this._x = value; this.event(XYImage.SPRITE_PROPERTY_CHANGE, { "x": this._x }); }