0
我有3个正方形。最小的方形s3在s2内。 s2位于s1侧。每个都是10px更大actionscript子精灵坐标
var s1:Sprite = new Sprite();
var s2:Sprite = new Sprite();
var s3:Sprite = new Sprite();
s2.addChild(s3);
s1.addChild(s2);
如何找到其父坐标系中的子坐标?
里面S3
trace(x) //10
trace(parent.childXof(s3)) //20 how do I get this?
它在s3中。 – Naro 2010-03-31 04:58:48