开发者

How listener will be executed for objects hidden by another objects in as3?

开发者 https://www.devze.com 2023-01-17 13:56 出处:网络
I have two movie-clips, one is small-box and another is big-box .Both are rectangular shape. Small- box has an index 0, and big-box has an index 1. Their x,y are same and big-box being big in size ge

I have two movie-clips, one is small-box and another is big-box .Both are rectangular shape. Small- box has an index 0, and big-box has an index 1. Their x,y are same and big-box being big in size gets hide small-box. Now the problem is the listener attached to small-box does not fire as big-box is on the top of small-box. what would be the way to get开发者_开发知识库 listener fired when click on small-box area??


Set mouseEnabled = false on the clip covering your button to make clicks go trough to objects below. If your boxes have children of their own, you may also need to set mouseChildren = false.

0

精彩评论

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