Is there a bare bones example of a truly simple application for use with touchlib?
Im really just looking for an example that places a sprite where I touch. And moves with my finger if I move it.
Id even pay some money for something like this.. And I would even turn around and start documentation on the entire process so others can do this as well.
Does something like this exist.
Yes it is great to sift through other applications, but Id like to see the true basics… Not of AS3 but of a touch enabled as3 script. I just need a starting point.
I see this in some of the code. And this makes perfect sense to me as it looks and seems to work similar to mouse events.
this.addEventListener(TouchEvent.MOUSE_MOVE, this.moveHandler, false, 0, true);
this.addEventListener(TouchEvent.MOUSE_DOWN, this.downEvent, false, 0, true);
this.addEventListener(TouchEvent.MOUSE_UP, this.upEvent, false, 0, true);
this.addEventListener(TouchEvent.MOUSE_OVER, this.rollOverHandler, false, 0, true);
this.addEventListener(TouchEvent.MOUSE_OUT, this.rollOutHandler, false, 0, true);
But how do enable using them? and can I just do something as simple as
public function downEvent(e:TouchEvent){
sprite.x = e.x;
}
What is the equivalent of mouseX? Where could I read about this?
Id really like to start documenting how to really start from point ZERO on how to program for touchlib. Im sure once you understand it, t is much easier… but right now, it is worse than pulling teeth to find something super simple, and straight forward.
