开发者

FLEX: how can I detect visual collisions between objects?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜