开发者

AS3 changing x value of a parent doesn't apply the x-change to its children?

开发者 https://www.devze.com 2023-01-30 08:45 出处:网络
So basicly I have a class w开发者_StackOverflowhich adds items and needs a drag and drop. I change the x value of the entire contianer class simply by this.x = something

So basicly I have a class w开发者_StackOverflowhich adds items and needs a drag and drop. I change the x value of the entire contianer class simply by this.x = something

By drag and drop all the items slide across the screen. When I trace the x value of the container class it has changed, but the x value of the items stayed the same (although their x value on the screen definitely changed). Anyone have some tips on this one?

Thanks!


var childActualX : Number = container.x + child.x;
0

精彩评论

暂无评论...
验证码 换一张
取 消