Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TapGesture. How to get children target? #67

Open
dreasn opened this issue Mar 31, 2014 · 1 comment
Open

TapGesture. How to get children target? #67

dreasn opened this issue Mar 31, 2014 · 1 comment

Comments

@dreasn
Copy link

dreasn commented Mar 31, 2014

In flash I can get the target's children of the mouseEvent. For example a movieclip, mcBox, inside it there is a Textfield:

mcBox.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void {
if(e.target is TextField) trace("we hit textfield") ;
}

However in gestouch:

var gt:TapGesture = new TapGesture(mcBox);
gt.addEventListener(GestureEvent.GESTURE_RECOGNIZED, onTap);
function onTap(e:GestureEvent):void {
if (e.target is TextField) trace("we hit textfield"); //<----Never happen
if (e.target.target is TextField) trace("we hit textfield"); //<----Also never happen
}

How to make TapGesture able to catch its children target?

@harry90
Copy link

harry90 commented Mar 18, 2015

I think this could help:
#46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants