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

image example? #2

Open
Seb-AS opened this issue Sep 1, 2012 · 3 comments
Open

image example? #2

Seb-AS opened this issue Sep 1, 2012 · 3 comments

Comments

@Seb-AS
Copy link

Seb-AS commented Sep 1, 2012

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

@fljot
Copy link
Owner

fljot commented Sep 2, 2012

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.

@Seb-AS
Copy link
Author

Seb-AS commented Sep 3, 2012

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

@fljot
Copy link
Owner

fljot commented Sep 4, 2012

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 Is posible to know how many fingers are in the screen?  Gestouch#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.

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