TouchScrolling icon indicating copy to clipboard operation
TouchScrolling copied to clipboard

image example?

Open Seb-AS opened this issue 12 years ago • 3 comments

hello fljot

Is posible to use TouchScrolling in flash cs6 with one image? and is posible add pinch zoom gestures?, I´m trying to implement Gestouch in Greensock ThrowProps + blitMask but i have the same issue always when zoom out the image move to diferent x and y coordinates and dissapear.

The only thing I want is make a simple pinch zoom with scroll for android.

Thanks Sebas

Seb-AS avatar Sep 01 '12 22:09 Seb-AS

Well once you have some scroller component (as one I have in example, for instance) you can put anything including images there. If you expect some component for CS# (the one for "components" panel) — I don't have that and definitely not planning to write.

I haven't implemented zoom functionality yet, but yea, that's TODO.

I've started a new branch where I try to separate responsibilities better and therefore decouple things. You could contribute there.

fljot avatar Sep 02 '12 10:09 fljot

No I don´t want a component like the "components panel", Only information how to use the TouchScrolling in flash cs6, now I´m doing a lot of things with the Gestouch Api v4, the new one give me some problems, I have 2 other questions about Gestouch

  1. There Is a method for know if i´m doing pinch zoom out? right now I´m use the MovieClip scale but it not accurate.
  2. I´m using numTouches = Gestouch.touchesManager.activeTouchesCount for know how many fingers are in the screen but detect one finger only if it move, because I need to know if it´s one finger to do pan or if 2 to zoom. I hope you understand my question here a few lines of code.

var transformGesture:TransformGesture; transformGesture = new TransformGesture(stage); transformGesture.addEventListener(org.gestouch.events.TransformGestureEvent.GESTURE_TRANSFORM, onGesture); function onGesture(event:org.gestouch.events.TransformGestureEvent):void { numTouches = Gestouch.touchesManager.activeTouchesCount }

I´m glad to help you in whatever you need to do in flash, you only need to tell me. thanks

Seb-AS avatar Sep 03 '12 22:09 Seb-AS

Well yea, the recent "stable" version of touch scrolling was made with Gestouch v0.4 or event v0.3, I believe. So either you try to use that one with some minor fixes to support Gestouch 0.4.2, or join the development of a slightly better touch scrolling (as said before, see https://github.com/fljot/TouchScrolling/tree/features/decoupled-architecture)

  1. You ask how to know if you're doing pinch-zoom-out? Well transformGesture.scale (or event.scaleX/Y in the old version) will be less then 1. Or you ask something else?
  2. You've been asking for amount of touches on the screen https://github.com/fljot/Gestouch/issues/13, but I see that you actually need the amount of touches currently handled by gesture. You must get them using gesture.touchesCount. Also I'd strongly recommend to rethink 1-2 touches question, because actually you can pan with 2 fingers.

fljot avatar Sep 04 '12 11:09 fljot