开发者

Actionscript getBounds : what if the targetCoOrdinateSpace is not added to stage

I have two display objects dispObj1, dispObj2.

dispObj2.stage is null. (i.e. it is not added to stage anyhow)

What should be the output of dispObj1.getBounds(dispObj2)?

Is it well 开发者_Go百科defined, or could it be arbitrary?

Once I got x of boundingRectangle close to 6710785, which I guess

is a symptom of an integer overflow somewhere.

But other times I got a reasonable value for x,y,width,height.


I guess it returns some junk values.
Another person has faced the same problem.
Source :
insane defaults for getBounds

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜