开发者

FLEX: how can I detect visual collisions between objects?

开发者 https://www.devze.com 2022-12-29 03:51 出处:网络
I would like to avoid the tags overlapping each other in this small Flex project: I\'ve this small FL开发者_JAVA技巧EX project: http://dl.dropbox.com/u/72686/IVbeta1/main.html#

I would like to avoid the tags overlapping each other in this small Flex project: I've this small FL开发者_JAVA技巧EX project: http://dl.dropbox.com/u/72686/IVbeta1/main.html#

The items are LinkButtons. How can I check if they are colliding or not ? Thanks


I think hitTestObject as seen here is what you're looking for. Then you can see if objects overlap and can change their positions accordingly.

0

精彩评论

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