Set mouseEnabled property to false, when you want an InteractiveObject not to recieve mouse events and an underneath InteractiveObject to recieve them.
Unfortunately, this does not affect ContextMenu.
InteractiveObject.mouseEnabled = false;
Sprite, MovieClip 등의 InteractiveObject 밑에 숨겨진 InteractiveObject가 마우스 이벤트를 받을 수 있도록 하려면, 위에 덮고 있는 InteractiveObject의 mouseEnabled 속성을 false로 바꿔주어야 합니다.
그러나 ContextMenu에는 적용되지 안네요. ㅠㅠ
download DepthManage.as
코멘트
“Pass MouseEvent to underneath InteractiveObject”에 대한 댓글 1개
InteractiveObject 가 겹칠 시의 버튼 비활성화에 대한 해결책…
전에 올린 buttonMode 에 관한 글(http://www.minarto.com/24) 에 몇가지 사실을 더 덧붙일 것이 생겼다.as3 에서 버튼 이벤트가 걸린 InteractiveObject 위에 InteractiveObject 가 겹쳐 있다면 겹친 부분은 버튼 이…