내 Sprite
클래스는 MOUSE_DOWN 이벤트 이후 (클릭 완료 전에) 마우스를 클릭 할 때 포커스를 잃지 않습니다.Flash Sprite가 MOUSE_DOWN 이벤트에 포커스를 잃습니다.
아이들에 대해서는 mouseEnabled
을 false로 설정하고 변경하지 않았습니다. FOCUS_OUT
에 대한 리스너를 추가하고 FocusEvent.relatedObject
속성이 NULL이라는 사실을 알게되었습니다. 이는 혼란 스럽습니다. 즉, 새로운 포커스 대상이 없다는 것을 의미하지 않습니다.
[FocusEvent type="focusOut" bubbles=true cancelable=false eventPhase=2 relatedObject=null shiftKey=false keyCode=0]
[MouseEvent type="mouseDown" bubbles=true cancelable=false eventPhase=2 localX=355 localY=362 stageX=360 stageY=367 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=true delta=0])
[MouseEvent type="click" bubbles=true cancelable=false eventPhase=2 localX=355 localY=362 stageX=360 stageY=367 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0]
이 간단한 예를 게시 할 수 있습니까? – greggreg
뭐가 좋아? 그것은 파일의 전체 잔뜩 내 애플 리케이션의 일부입니다. 'Sprite'는 마스크를 설정하는 것 외에는 특별한 일을하지 않습니다. –
이 아마도 당신의 무대입니다. stage.mouseEnabled = false 일 수도 있습니다. – jpea