Comments (6)
Seems like you use it with Starling?
Add also
Gestouch.addTouchHitTester(new NativeTouchHitTester(stage));
Strange though, why did it appear only when switching from exe to air.
Ehhh I should remove that semi-automatic initialization and specify that you (user) should initialize everything explicitly, manually...
from gestouch.
hello,
my information was a bit confusing. I didn't use starling.
I have normal MOUSE_DOWN events on a few buttons. I get the errors on these buttons. I also have a MOUSE_DOWN event on the stage, to do some things for logging.
I got the error only on these events, I could move the clips with the Gestouch event with the mouse, whene using the gestures the scaling and rotation is working but not the right way.
thanks...
from gestouch.
So, didn't my advice help??
from gestouch.
when using the TouchHitTester I get this
throw new Error("Display list adapter not found for target of type '" + getQualifiedClassName(target) + "'.");
from gestouch.
Okay.. just to make it clear for you and to anyone who could read this:
- (Entry point – when mouse/touch event happened) Input adapter was not able to find any touch target. It happened because there was no entity specified to do that (touch hit tester). I had some semi-intelligent automatic way to initialize those when working with old good DisplayObjects, but apparently it's more of confusing situation, when something is done manually (you created input adapter yourself).
- Now that you've added touch hit tester – touch object has target now. But it couldn't find suitable display list adapter to get the hierarchy of objects (think of regular old good Display List) to analyze stuff. Again, if we talk about automatic stuff – it would be registered-initialized when you create a gesture for some DisplayObject. Again, semi-intelligent-semi-stupid = apparently confusing when things don't go well automatically.
So to fix this just write
// flash.display.DisplayObject
Gestouch.addDisplayListAdapter(DisplayObject, new NativeDisplayListAdapter());
Sorry for confusion and thank you for bringing attention to this. I should remove that semi-automatic-"helpful" stuff.
from gestouch.
Or I could simply do nothing, if touch target is not found – what's the point anyway, if you haven't added anything for Stage – you're probably not interested in that anyway... Ah yeah, total amount of touches might be useful. So yes, I should remove semi-automatic stuff and explain that everything must be initialized manually (it's not hard anyway).
from gestouch.
Related Issues (20)
- Limit panning in TransformGesture HOT 2
- DoubleTab and zoom HOT 3
- use Gestouch in Normal As3 HOT 1
- Gestouch suddenly stopped working on Windows 10 with latest Animate CC HOT 2
- How can I use gestouch in starling2 and normal swf file with together ? HOT 1
- freerotation behaviour HOT 4
- SwipeGesture and Drag Drop HOT 1
- swipe container and tap with button scaling up HOT 19
- Errors when using swipe gesture with Starling HOT 2
- Starling.dispose() loses Gestouch swipe HOT 3
- Gestouch with Air18 HOT 8
- Gestouch suddenly stops working HOT 7
- Cannot register CLICK events on items inside an item dragged with Gestouch HOT 2
- example for drag and zoom and rotate. all together with gestouch HOT 10
- Listeners not working in certain circumstances HOT 15
- SingleTap and DoubleTap - suggestions? HOT 3
- TUIO and Starling HOT 2
- Shaky TransformGesture HOT 5
- Dispatch SwipeGesture to repeat Event HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gestouch.