deloki
deloki

Reputation: 1771

Gestouch works only when mapped to stage

I am trying to use gestouch library in my project and i can't seem to get it to work properly.

This is how i am mapping it:

var tapGesture:TapGesture = new TapGesture(stage);
tapGesture.addEventListener(GestureEvent.GESTURE_RECOGNIZED, onTap);

As you can see it is mapped to the stage and this way it works... The class where i am using it extends a flash Sprite, and i would like to map the gesture to this, but when i do, gestouch doesn't seem to work...

I even tried putting a sprite with stage width and height on top of my view and still doesn't work...

Anyone knows what could be the problem?

Also, maybe it is important to note, i am using a ASC2.0, so i had to remove the mario mushroom operator from this part : Gestouch.inputAdapter ||= new NativeInputAdapter(stage);

Upvotes: 4

Views: 863

Answers (1)

average dev
average dev

Reputation: 1118

I (am the author of Gestouch) haven't tested it with ASC 2.0 because it's still in development, but yea, at least it's known that there issues with "mushroom operator" and -inline compiler argument.

So the answer: stick to MXMLC or use sources and find out why it doesn't work.

Also it is better to ask questions on Github. I found this almost by accident — Google reports me of Gestouch mentions =)

Upvotes: 2

Related Questions