开发者

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

开发者 https://www.devze.com 2023-01-12 10:00 出处:网络
I have two display objects dispObj1, dispObj2. dispObj2.stage is null. (i.e. it is not added to stage anyhow)

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

精彩评论

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